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.
Unfortunately, activation email could not send to your email. Please try again.

How to I replace zeros with blanks in the ggc

Thread ID:

Created:

Updated:

Platform:

Replies:

57645 Mar 7,2007 03:38 PM Mar 7,2007 04:23 PM Windows Forms 1
loading
Tags: Grouping
James Blibo
Asked On March 7, 2007 03:38 PM

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?

Administrator [Syncfusion]
Replied On March 7, 2007 04:23 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;