GridBandCollection.Remove(GridBand) Method

Removes the specified band from the collection.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v21.2.dll


public virtual void Remove(
    GridBand band


Name Type Description
band GridBand

A GridBand object representing the band to remove.


Once the band is removed from the collection, its child bands (at all nesting levels) and columns (if any) are removed too.

If you need to move a band to another one preserving its child bands and columns hierarchy, use the target collection’s GridBandCollection.Add or GridBandCollection.Insert method.

See Also