Quantcast
Viewing all articles
Browse latest Browse all 7205

How to Conditionally Apply Styles (CellStyle)

This example demonstrates how to apply a custom style to cells displayed within the 'Product Name' column based on a custom condition. A product's name is highlighted if the number of units is less than 20.

OBSOLETE. Starting from version 14.1, DXGrid introduces the built-in conditional formatting feature.

Question Comments

Added By: Bharadwaz Avvari at: 5/7/2014 2:38:37 AM    

there is No color change in the this example. I think something is missing please check it once again. and Re post it

Added By: Elliot (DevExpress Support) at: 5/7/2014 3:26:29 AM    This issue will  be processed in the How to Conditionally Apply Styles (CellStyle) ticket.Added By: aymeric daverat at: 5/9/2014 2:08:49 AM    

Hi, I have some troubles using this exmaple.
The cells are correctly colorized, but when I select the row, the default focused row color is not applied ( I would like the selected theme one)
What can I do then ?
Thanks a lot for your answer

Added By: Alexander Rus (DevExpress Support) at: 5/9/2014 4:00:14 AM    

Hi,
By default, when the xxxThemKey markup extension is used, resources are searched in the DeepBlue theme. When another theme is applied, it is necessary to use the ThemeName attribute in resource keys, for example:


BasedOn="{StaticResource {dxgt:GridRowThemeKey ResourceKey=CellStyle, ThemeName=MetropolisDark}}"

Thanks,
Alexander


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>