Format cells values in ggc

I am using syncfusion ggc 5.2. Can we format values of the cell. For example, on binding data with ggc, if there is "-1" in any cell then that cell should be empty ie no data in the cell.

I will be v thankfull if anyone could help me in this.



1 Reply

AD Administrator Syncfusion Team November 19, 2007 04:23 PM UTC

One way you can do this is to subscribe to the TableControlDreawCellDisplayText event and check for "-1" there.


void gridGroupingControl1_TableControlDrawCellDisplayText(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlDrawCellDisplayTextEventArgs e)
{
if (e.Inner.DisplayText == "-1")
e.Inner.DisplayText = "";
}



Loader.
Up arrow icon