Back to Devexpress

MVCxGridViewColumnCollection.AddBand(String) Method

aspnetmvc-devexpress-dot-web-dot-mvc-dot-mvcxgridviewcolumncollection-dot-addband-x28-system-dot-string-x29.md

latest2.0 KB
Original Source

MVCxGridViewColumnCollection.AddBand(String) Method

Creates a new band column with the specified caption and adds it to the collection.

Namespace : DevExpress.Web.Mvc

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public MVCxGridViewBandColumn AddBand(
    string caption
)
vb
Public Function AddBand(
    caption As String
) As MVCxGridViewBandColumn

Parameters

NameTypeDescription
captionString

A String value that specifies the band column’s caption.

|

Returns

TypeDescription
MVCxGridViewBandColumn

An MVCxGridViewBandColumn object that is the newly created band column.

|

Remarks

Use the AddBand method to add a new column with the specified settings to the end of the MVCxGridViewColumnCollection collection.

See Also

Bands

Grid View

Columns

MVCxGridViewColumnCollection Class

MVCxGridViewColumnCollection Members

DevExpress.Web.Mvc Namespace