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. Image for the cookie policy date

How to Set GridConditionalFormatDescriptor for ComboBox Cell type

Hi,
I am GGC. I want to apply GridConditionalFormatDescriptor to the Cell of type comboBox. The GridConditionalFormatDescriptor.Expression is set for the list (DataView) to which ComboBox is bind.

Please advise.

Thanks,
Dev

1 Reply

HA haneefm Syncfusion Team June 26, 2007 09:50 PM UTC

Hi Dev,

You can try these code snippet.

GridConditionalFormatDescriptor Format1 = new GridConditionalFormatDescriptor("Row");
Format1.Expression = "[Col2] Like 'One'";
Format1.Appearance.AnyRecordFieldCell.BackColor = Color.Red;

this.gridGroupingControl1.TableDescriptor.ConditionalFormats.Add(Format1);

Here is a sample for implementating the Conditional format descriptor with the combobox column in a grid
GGC_Foramt.zip

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon