The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi I am using syncfusion GridControl. Now I have to change the 0 displaying cell to empty cell. for this I am using QueryCellInfo event. But my problem is either In "e" I am not getting currents cell's value or even I am not able to find the current cell's columnname.
Please help me: In short how can I convert 0 value containing cell to empty value cell.? How can I find the columnName in gridcontrol ?
HAhaneefm Syncfusion Team December 26, 2007 10:45 PM UTC
Hi Amol,
For GridControl:
How can I convert 0 value containing cell to empty value cell.? >>>>> You can handle the QueryCellInfo event of the grid and set the e.Style.CellValue/Text to new value.
void gridControl1_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e) { if( e.Style.Text ="0") e.Style.Text = string.Empty; } How can I find the columnName in gridcontrol ? >>>>> Call the GetAlphaLabel method to get the column labels in a grid. Here is a code snippet