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.

Format cells values in ggc

Thread ID:

Created:

Updated:

Platform:

Replies:

69928 Nov 19,2007 06:37 AM Nov 19,2007 11:23 AM Windows Forms 1
loading
Tags: GridControl
abc
Asked On November 19, 2007 06:37 AM

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.



Administrator [Syncfusion]
Replied On November 19, 2007 11:23 AM

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 = "";
}



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.

;