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

GGC + GridConditionalFormatDescriptor

Thread ID:

Created:

Updated:

Platform:

Replies:

78336 Dec 9,2008 01:52 PM UTC Dec 11,2008 12:32 PM UTC WinForms 1
loading
Tags: GridControl
Tobias Bendschneider
Asked On December 9, 2008 01:52 PM UTC

Hello,

i've got a object called Appointment.
Every Appointment has a property (nested object) called Status. Now i've bound a list of Appointments to my GGC and want to have a conditional Format on a value of Appointment.Status.XXX .

here's my Expression:
[Status_XXX] LIKE 'YYY'

Status_XXX is the Mappingname of the column...
But this dosn't work.

Could anyone please help me?

Regards
Tobias



Nisha Arockiya A [Syncfusion]
Replied On December 11, 2008 12:32 PM UTC

Hi Tobias,

Thanks for your interest in Syncfusion Products.

You can use Expression property of GridConditionalFormatDescriptor class to specify the ConditionalFormats.

Please try code like this:

GridConditionalFormatDescriptor Descriptor1 = new GridConditionalFormatDescriptor();
Descriptor1.Appearance.AnyRecordFieldCell.Enabled = false;
Descriptor1.Appearance.AnyRecordFieldCell.BackColor = Color.Orange;
Descriptor1.Expression = "(([Col1] Like "CRiDRS") or ([Col1] Like "CRANE"))And (([Col2] Like "Market Data") or ([Col2] Like "Credit Data"))";
this.gridGroupingControl1.TableDescriptor.ConditionalFormats.Add(Descriptor1);

Here is a small sample:
http://websamples.syncfusion.com//samples/Grid.Windows/Development/GGC_ConditionalFormating_String.zip

Please let me know if this helps.

Regards,
Nisha



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

;