Skip to main content

Conditional Formatting

  • 2 minutes to read

The GridControl includes a conditional formatting feature, which allows you to change individual cells or rows’ appearance based on specific conditions. This feature helps to highlight critical information, identify trends and exceptions, and compare data.

Run Demo: Conditional Formatting Run Demo: Data Update Animation

The image below demonstrates various types of conditional formatting.

ConditionalFormatting_showoff

Conditional Formatting uses the Criteria Language Syntax to check if a cell value matches certain criteria. To highlight a row/cell using a Color or Brush stored at the data source level, use techniques from this topic - How to Conditionally Set Background and Foreground for Grid Rows and Cells.

Note

To apply format conditions when you define a custom CellTemplate, the template should contain a BaseEdit class descendant declared as demonstrated in the following topic: Custom In-Place Cell Editors.

Common Features

Conditional Formats in Details

Examples

Usage Notes