Skip to main content
A newer version of this page is available. .
Tab

VerticalGridFormatConditionHighlight Class

A grid format condition that allows you to highlight cell values based on a custom expression.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

public class VerticalGridFormatConditionHighlight :
    GridFormatConditionHighlight

Remarks

ASPxVerticalGrid supports conditional formatting, i.e., automatically applies cell formatting based on the specified rules. The ASPxVerticalGrid.FormatConditions property provides access to a collection of rules which are represented by the GridFormatConditionBase class descendants.

Use the VerticalGridFormatConditionHighlight object to create a format condition allowing you to highlight cell values based on a custom expression. The conditional formatting is determined for the row specified by the GridFormatConditionBase.FieldName property. By default, the formatting is applied to the same row. The style format, which can be specified by the GridFormatConditionExpressionBase.Format property, is applied to a cell (or record, provided the VerticalGridFormatConditionHighlight.ApplyToRecord property is set to true) whose value meets the condition specified by the GridFormatConditionHighlight.Rule property. When this property is set to Expression, use the GridFormatConditionHighlight.Expression property to specify a custom rule expression.

If the GridFormatConditionExpressionBase.Format property is set to Custom, the formatting style can be specified by the VerticalGridFormatConditionHighlight.CellStyle.

Online Demo

Conditional Formatting

See Also