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

How to Set GridConditionalFormatDescriptor for ComboBox Cell type

Thread ID:

Created:

Updated:

Platform:

Replies:

62996 Jun 26,2007 08:45 PM UTC Jun 26,2007 09:50 PM UTC WinForms 1
loading
Tags: GridControl
Devendra Patel
Asked On June 26, 2007 08:45 PM UTC

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

haneefm [Syncfusion]
Replied On 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

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.

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

;