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

Highlighting a row in GridGroupingControl

Thread ID:





52743 Dec 4,2006 07:17 AM UTC Dec 4,2006 07:51 AM UTC WinForms 1
Tags: GridControl
Vinod Shembekar
Asked On December 4, 2006 07:17 AM UTC


The following statement works fine for numeric values. It matches rows perfectly.

gridConditionalFormatDescriptor1.Expression = "[amount]=100"

But when I have to compare string value it fails.
For e.g I have one column in grid called "item". And I have to highlight all records having value equal to "i1".

Will you please explain how following statement should be completed for "item" = "i1"?
gridConditionalFormatDescriptor1.Expression =

Thanks and Regards,

Administrator [Syncfusion]
Replied On December 4, 2006 07:51 AM UTC

Hi Vinod,

Please try the 'Like' operator to format the grid using GridConditionalFormatDescriptor. The following code sets the TextColor/BackColor of those record field cells whose Col1 values equal to 'W'’:

GridConditionalFormatDescriptor Descriptor1 = new GridConditionalFormatDescriptor();
Descriptor1.Appearance.AnyRecordFieldCell.TextColor = Color.Red;
Descriptor1.Appearance.AnyRecordFieldCell.BackColor = Color.AliceBlue;

Descriptor1.Expression = "[Col1] Like 'W'";


Please refer to the attached sample for implementation.

Best Regards,


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