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

Compare and Format a cell from GroupingGrid

Thread ID:





71830 Feb 15,2008 03:48 AM UTC Feb 15,2008 09:54 AM UTC WinForms 1
Tags: Grouping
umesh Yelgaonkar
Asked On February 15, 2008 03:48 AM UTC

I am currently using syncfusions Grouping grid control. While displaying data we want to compare data froma perticualr cell and depending upon condition we want to change background color and tooltip for a particular cell of the grouping grid.

Vishnu Kumar [Syncfusion]
Replied On February 15, 2008 09:54 AM UTC

Hi Umesh

Thank you for your patience.

Issue:Compare and Format a cell from GroupingGrid

You can compare the cell values and apply the background color and Tooltip of the particular row using the below code snippet :

GridConditionalFormatDescriptor gcfd1 = new GridConditionalFormatDescriptor();
gcfd1.Name = "Criteria1";
switch (ProductID.SelectedItem.ToString())
case "Equals":
gcfd1.Expression = "[ProductID]=" + this.DDLPid.SelectedItem.Text;
Color c1 = Color.FromName(colorProduct.SelectedItem.Text);
gcfd1.Appearance.AnyRecordFieldCell.BackColor = c1;
gcfd1.Appearance.AnyRecordFieldCell.CellTipText = "ProductCell";

Please refer the sample in the below link which illustrates the above:


Please try running the above sample and let me know if this helps.



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

or the page will be automatically redirected to 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