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

How to I replace zeros with blanks in the ggc

Is it possible to replace all occurrence of zero in the ggc with blanks. Would that cause custom engine to throw error when attempting to parse the cells?

1 Reply

AD Administrator Syncfusion Team March 7, 2007 09:23 PM UTC

Hi James,

You can use TableControlDrawCellDisplayText event of the grid and set the e.Inner.DispalyText to some new value to want to display. Please find the code snippet below

void gridGroupingControl1_TableControlDrawCellDisplayText(object sender, GridTableControlDrawCellDisplayTextEventArgs e)
{
if (e.Inner.DisplayText.IndexOf("0") != -1)
{
e.Inner.DisplayText = e.Inner.DisplayText.Replace("0","");
}
}

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon