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

Conditional formatting ICustomTypeDescriptor

Thread ID:





101163 Sep 30,2011 07:26 PM UTC Mar 5,2012 01:21 PM UTC WPF 4
Tags: GridControl
Mrudang Majmudar
Asked On September 30, 2011 07:26 PM UTC

I have rows which implement ICustomType Descriptor

grid binds to data and displays the data
however if i use Conditional formatting for double values using LessThan operator i get below error .

The binary operator LessThan is not defined for the types 'System.Object' and 'System.Object'.

Jawahar Jeevanandan J [Syncfusion]
Replied On October 10, 2011 06:31 PM UTC

Hi Mrudang,

Thanks for your patience.

Could you please let us know what you are trying to acheive using ICustomTypeDescriptor. Also if possible, could you please provide the sample to reproduce this issue. This will help us to resolve the issue more quickly.

Please let us know if you have any queries.


Michael Culley
Replied On October 10, 2011 10:52 PM UTC

Being this is the WPF world wouldn't you just use DataTemplates for conditional formatting?

Mrudang Majmudar
Replied On October 13, 2011 01:30 PM UTC

Basically i have a row object implementing ICustomTypeDescriptor

returning PropertyDescriptorCollection to create for columns.

I need to do this for custom display of data

using Conditional format i can dynamically add conditions to VisibleColumn .

PropertyDescriptor returns correct type of the property i.e if column is double it returns double.

it i.e. Conditional formatting work fine if it is a generic collection i.e ObservableCollection

Sankara Narayanan N [Syncfusion]
Replied On March 5, 2012 01:21 PM UTC

Hi Mrudang,

Sorry for the delayed response.

Since this forum has been created as an incident and the issue reported here was logged as defect in that incident, please followup the Incident I91317.

Please let us know if you have any queries.



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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