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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Format cells values in ggc

Thread ID:





69928 Nov 19,2007 11:37 AM UTC Nov 19,2007 04:23 PM UTC WinForms 1
Tags: GridControl
Asked On November 19, 2007 11:37 AM UTC

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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon