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.

Conditional Formating in c# for GDC

Thread ID:

Created:

Updated:

Platform:

Replies:

116181 Apr 21,2014 03:08 PM May 30,2014 05:44 AM WPF 6
loading
Tags: GridDataControl
fff
Asked On April 21, 2014 03:08 PM

Hi,

Do you have an example of conditional formating done in c# and not in XAML ?

Similar to the pivotgrid here : http://help.syncfusion.com/ug/wpf/pivot%20analysis/default.htm#!documents/1627conditionalformatting.htm

but for GDC

I can't figure out the names & I need to do that at run time

Thanks,

Fabrice


Ganesan V [Syncfusion]
Replied On April 23, 2014 09:45 AM

Hi Fff,

Thanks for using Syncfusion Products.

We have attached a sample based on your requirements. Find the attached sample.

Please let us know if this helps.

Thanks,

Ganesan V


Attachment: Sample_c7c7cdfa.zip

fff
Replied On April 25, 2014 01:59 AM

Thanks Ganesan, your sample rocks !
(Can you please have a look to my question about binding in c# to 3 collections in the same forum?)

Thanks again !
Fabrice

Ganesan V [Syncfusion]
Replied On May 2, 2014 09:09 AM

Hi Fff,

Thanks for your patience.

We have created a sample to achieve your requirement such as binding 3 observable collection using SfDataGrid control.

You can find the attached sample under the following location: 

Please let us know if you have any queries.

Thanks,

Ganesan V


Attachment: WpfApplication3_9bfaf494_25971809.zip

Ganesan V [Syncfusion]
Replied On May 6, 2014 08:57 AM

Hi Fff,

Sorry for the inconvenience caused. 

In our previous update, we have wrongly updated the sample using SfDataGrid instead of GridDataControl. Now we have created the sample with binding 3 collection in c# using GridDataControl. Please find the attached sample under the following location.

Please let us know if you have any queries.

Thanks,

Ganesan V


Attachment: GDCWithBinding3Collection_3365128c.zip

fff
Replied On May 27, 2014 03:37 PM

Hi Ganesan,

The c# you provided works good and I have applied it a lot !

However I came to a strange case:

I would like to do some conditional formatting if there is no value in the cell = binded database returns 'null'

As value for the parameter, I have tried null

I have tried also '' (single quote)

I have tried also"" (double quote)

..... all # above are giving me a compile error ... and no idea what else to test to detect that

So how can I test that null in conditional formatting ?

Thanks,

Fabrice


Ganesan V [Syncfusion]
Replied On May 30, 2014 05:44 AM

Hi Fabrice,

We have analyzed the reported issue “Compilation Error while apply Conditional formatting for null values in Grid” and we have applied the conditional formatting for null values, but we are unable to reproduce the issue. Please refer the attached sample. 

Please let us know if you have any queries,

Regards,

Ganesan V


Attachment: GDCConditionalFormatingForNullValue_4f2e425b.zip

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.

;