MVCxVerticalGridFormatConditionCollection<ColumnType>.AddColorScale<ValueType>(Expression<Func<ColumnType, ValueType>>, GridConditionColorScaleFormat) 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.v23.2.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
public VerticalGridFormatConditionColorScale AddColorScale<ValueType>(
Expression<Func<ColumnType, ValueType>> fieldNameExpression,
GridConditionColorScaleFormat format
)
Parameters
Name | Type | Description |
---|---|---|
fieldNameExpression | Expression<Func<ColumnType, 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. |
Type Parameters
Name |
---|
ValueType |
Returns
Type | Description |
---|---|
VerticalGridFormatConditionColorScale | A VerticalGridFormatConditionColorScale object that is the newly created format condition item. |
See Also