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

MVCxGridViewFormatConditionCollection<RowType>.AddColorScale(Expression<Func<RowType, ValueType>>, GridConditionColorScaleFormat) Method

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

Namespace: DevExpress.Web.Mvc

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

Declaration

public GridViewFormatConditionColorScale AddColorScale(
    Expression<Func<RowType, ValueType>> fieldNameExpression,
    GridConditionColorScaleFormat format
)

Parameters

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

The expression that identifies the data model field.

format GridConditionColorScaleFormat

One of the GridConditionColorScaleFormat enumeration values specifying the format (color scale) applied to cells. This value is assigned to the GridFormatConditionColorScale.Format property.

Returns

Type Description
GridViewFormatConditionColorScale

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

See Also