Back to Devexpress

GridBandCollection.AddBand(String) Method

windowsforms-devexpress-dot-xtragrid-dot-views-dot-bandedgrid-dot-gridbandcollection-dot-addband-x28-system-dot-string-x29.md

latest1.8 KB
Original Source

GridBandCollection.AddBand(String) Method

Creates a band with the specified caption and appends it to the collection.

Namespace : DevExpress.XtraGrid.Views.BandedGrid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
public virtual GridBand AddBand(
    string caption
)
vb
Public Overridable Function AddBand(
    caption As String
) As GridBand

Parameters

NameTypeDescription
captionString

A String value which specifies the band’s caption. This value is assigned to the GridBand.Caption property.

|

Returns

TypeDescription
GridBand

A GridBand object which represents the created band.

|

See Also

GridBandCollection Class

GridBandCollection Members

DevExpress.XtraGrid.Views.BandedGrid Namespace