OBSOLETE. Starting from version 14.1, DXGrid introduces the built-in conditional formatting feature. See the Conditional Formatting article and the E983 - How to implement conditional formatting for rows ticket for details.
This example illustrates how to add the DXGrid behavior when you can use some conditional expressions and apply your custom style for cells and rows.
This functionality was implemented by an attached behavior for TableView which encapsulates all the functionality. In addition, this approach allows you to add new style options in XAML or in a code-behind file of your application.
We also added a new "Format Condition Editor" item to the column popup menu.
This item will show you a dialog window for adding new styles and deleting and editing existing styles.
Question Comments
Added By: Mark G Servidio at: 1/9/2013 6:26:06 PM
Is there an example of this same functionality for Silverlight? We require an almost identical functionality for our users.
Added By: David Hsu 1 at: 10/14/2013 9:19:49 AMIt was great to be able to customize appearance using expression. But I found the appearance didn't get updated when I check/uncheck "IsCompleted" field.
I added INotifyPropertyChanged to Task object. Also I switched to different row to make the data saved to underline data.
Added By: Andrey K (DevExpress Support) at: 10/13/2015 6:06:54 AM Hi,We accidentally discovered that your comments were out of scope of our Support Center for a long time. If these issues are still actual, please create corresponding tickets in our SC.
Thanks,
Andrey