We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon