Skip to main content

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.v24.2.dll

Declaration

public MVCxGridViewBandColumn<RowType> AddBand<ValueType>(
    Expression<Func<RowType, ValueType>> expression,
    Action<MVCxGridViewBandColumn<RowType>> method
)

Parameters

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
ValueType

The value type.

Returns

Type Description
MVCxGridViewBandColumn<RowType>

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

See Also