MVCxGridViewColumnCollection<RowType>.AddBand<ValueType>(Expression<Func<RowType, ValueType>>, Action<MVCxGridViewBandColumn<RowType>>) Method

Adds a new band column to the collection and allows you to customize this column in a delegate method implementation.

Namespace: DevExpress.Web.Mvc

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


public MVCxGridViewBandColumn<RowType> AddBand<ValueType>(
    Expression<Func<RowType, ValueType>> expression,
    Action<MVCxGridViewBandColumn<RowType>> method
Public Function AddBand(Of ValueType)(
    expression As Expression(Of Func(Of RowType, ValueType)),
    method As Action(Of MVCxGridViewBandColumn(Of RowType))
) As MVCxGridViewBandColumn(Of RowType)


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

The expression that identifies the data model field to which the band column is bound.

method Action<MVCxGridViewBandColumn<RowType>>

A delegate method that accepts the created MVCxGridViewBandColumn<RowType> as a parameter.

Type Parameters

Name Description

The value type.


Type Description

A MVCxGridViewBandColumn<RowType> object that is the newly added band column.

See Also