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

GridBand() Constructor

In This Article

Creates a new GridBand object.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

public GridBand()

#Remarks

Use this constructor to create bands at runtime. To display the new band at the root bands level, it must be added to the View’s BandedGridView.Bands collection. To display the band as a band’s child, add the new band to a band’s GridBand.Children collection.

Bands can also be created using methods provided by the GridBandCollection class (these class objects are accessible with the BandedGridView.Bands and GridBand.Children properties). The methods provided create a new band and automatically add it to the collection.

See Also