Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeListBandCollection.AddBand(String) Method

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

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public TreeListBand AddBand(
    string caption
)

#Parameters

Name Type Description
caption String

A value that specifies the band’s caption. This value is assign to the TreeListBand.Caption property.

#Returns

Type Description
TreeListBand

An object that specifies the new band.

#Remarks

You can also use the TreeListBandCollection.Add method to append a new band with default settings or manually created band to the collection. To add a band to a specific position within the collection, utilize the TreeListBandCollection.Insert method.

In addition, you can add several bands (an array of bands) to the collection using the TreeListBandCollection.AddRange method.

See Also