Serves as a base for classes that represent format conditions.
public abstract class FormatConditionBase : BindableObject
Public MustInherit Class FormatConditionBase Inherits BindableObject
The FormatConditionBase class implements the base functionality for classes that represent format conditions.
A format condition defines appearance settings and criteria. When a cell value matches the criteria, the appearance settings are applied to this cell or row containing these cells.
This example illustrates how to apply a format to rows in a GridControl that match a specific expression.
An expression is a string that, when parsed and processed, evaluates some value. Expressions consist of column names, constants, operators, and functions. In this example, a Boolean expression is used. If the expression evaluates to true, the format is applied. The format highlights rows that have values in the Total column that are less than 100.
using DevExpress.Mobile.DataGrid; // ... FormatCondition condition = new FormatCondition(); condition.FieldName = "Total"; condition.Expression = "[Total] < 100"; condition.PredefinedFormatName = "LightRedFillWithDarkRedText"; condition.ApplyToRow = true; grid.FormatConditions.Add (condition);