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

GridBandCollection Class

Represents a band collection.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

[ListBindable(false)]
public class GridBandCollection :
    CollectionBase,
    IEnumerable<GridBand>,
    IEnumerable,
    IList<GridBand>,
    ICollection<GridBand>

The following members return GridBandCollection objects:

#Remarks

Banded Grid Views allow you to arrange bands into a tree. The collection of root bands is available via the View’s BandedGridView.Bands property. Each band can hold its child band collection in its GridBand.Children property. Band objects also provide the GridBand.Collection property which allows you to access the collection of bands located one level higher in the hierarchy. All the properties mentioned (band collections) are represented by GridBandCollection objects.

GridBandCollection members allow you to add, remove, access individual bands and perform other common collection management tasks. It also provides properties that allow you to access the band that owns this collection and the View to which the collection belongs.

#Inheritance

Object
CollectionBase
GridBandCollection
See Also