Skip to main content

MVCxVerticalGridFormatConditionCollection<ColumnType>.AddHighlight<ValueType>(Expression<Func<ColumnType, ValueType>>, String, GridConditionHighlightFormat) Method

Creates a new format condition item with the specified settings and adds it to the MVCxVerticalGridFormatConditionCollection<ColumnType> collection.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.2.dll

Declaration

public VerticalGridFormatConditionHighlight AddHighlight<ValueType>(
    Expression<Func<ColumnType, ValueType>> fieldNameExpression,
    string expression,
    GridConditionHighlightFormat format
)

Parameters

Name Type Description
fieldNameExpression Expression<Func<ColumnType, ValueType>>

An expression that identifies the processed data field.

expression String

A String value specifying the expression used to format grid cells.

format GridConditionHighlightFormat

One of the GridConditionHighlightFormat enumeration values specifying the format (highlight) applied to cells.

Type Parameters

Name
ValueType

Returns

Type Description
VerticalGridFormatConditionHighlight

A VerticalGridFormatConditionHighlight object that is the newly created format condition item.

See Also