A newer version of this page is available. Switch to the current version.

MVCxGridViewFormatConditionCollection<RowType>.AddTopBottom(Expression<Func<RowType, ValueType>>, GridTopBottomRule, GridConditionHighlightFormat) 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.v18.2.dll

Declaration

public GridViewFormatConditionTopBottom AddTopBottom(
    Expression<Func<RowType, ValueType>> fieldNameExpression,
    GridTopBottomRule rule,
    GridConditionHighlightFormat format
)
Public Function AddTopBottom(
    fieldNameExpression As Expression(Of Func(Of RowType, ValueType)),
    rule As GridTopBottomRule,
    format As GridConditionHighlightFormat
) As GridViewFormatConditionTopBottom

Parameters

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

An expression that identifies the processed data field.

rule GridTopBottomRule

One of the GridTopBottomRule enumeration values specifying the format condition rule.

format GridConditionHighlightFormat

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

Returns

Type Description
GridViewFormatConditionTopBottom

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

See Also