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.
Unfortunately, activation email could not send to your email. Please try again.

How to Set GridConditionalFormatDescriptor for ComboBox Cell type

Thread ID:

Created:

Updated:

Platform:

Replies:

62996 Jun 26,2007 04:45 PM Jun 26,2007 05:50 PM Windows Forms 1
loading
Tags: GridControl
Devendra Patel
Asked On June 26, 2007 04:45 PM

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 05:50 PM

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.

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.

;