Skip to content

DevExpress-Examples/winforms-dashboard-apply-conditional-formatting-to-cards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BI Dashboard for WinForms - How to Apply Conditional Formatting to the Card Dashboard Item

The example contains the following methods that apply a set of format rules to cards:

  • AddCommonRule

    This method uses the series dimension values to calculate each rule. The rules apply to all the cards in the Card dashboard item.

  • AddRulesToTheFirstCard/AddRulesToTheSecondCard

    These methods use card values to calculate each rule. The rules apply to the related card.

The table below lists format rules used in this example and the condition type they apply.

Format Condition Type Rule Name Appearance style
Value backColorStyleRule Applies a light-green background color to cards whose actual value is equal to the set condition.
iconRule Applies full gray star icons to cards whose percentage variation value is greater than the set condition value.
fontStyleRule Applies the bold dark-blue font style to the cards' actual value that is between the range of condition values.
fontStyleUnderlinedRule Applies the underlined red font style to the title of cards whose absolute variation value is less than the condition value.
Gradient Ranges rangeRule Applies a predefined range of colors to cards.
gradientRule Applies a predefined range of colors to cards.
Icon Ranges deltaIconRule Applies the positive-negative icon range to cards.

Files to Review

Documentation

More Examples