A newer version of this page is available. Switch to the current version.

GridBandCollection.Add() Method

Creates and adds a new band to the end of the collection.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v18.2.dll


public virtual GridBand Add()


Type Description

A GridBand object representing the band added.


The Add method creates a new band with default settings, adds it to the end of the collection and returns the new band. You can customize the settings of the object returned to provide the band’s desired appearance and functionality. You can also create a band object manually, customize it as needed and then add to the collection using another overload of the Add method.

If you need to add a band to a specific position within the collection, use the GridBandCollection.Insert method. To remove a band from the collection, use the GridBandCollection.Remove method.

See Also