OBSOLETE. Starting from version 14.1, DXGrid introduces the built-in conditional formatting feature. Please refer to How to implement conditional formatting for rows for details.
This example illustrates how to apply different styles to individual grid cells or rows based upon custom conditions.
To enable this feature, you need to set the attached FormatConditionsProvider.AllowFormatConditions property to true for TableView. In this case, a new "Show Format Conditions" item will appear in the Column Context Menu. Simply right-click any column header to invoke this menu and choose the "Show Format Conditions" item. As a result, FormatConditionsWindow will be shown. This dialog allows you to create multiple Style Format Conditions. To create a new one, click the Add button. On the right, choose any column from a drop-down window if you wish to apply your custom style to cells of a particular column. If you wish to apply the style to a whole row, leave this option empty. The next step is to set the Background, and/or Foreground, and/or Font settings. Finally, set your custom condition by using the Criteria section where you will find FilterControl. All the changes on the right side will be reflected in a corresponding item on the left.