Skip to main content
A newer version of this page is available. .

GridBandCollection.Remove(GridBand) Method

Removes the specified band from the collection.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v19.1.dll

Declaration

public virtual void Remove(
    GridBand band
)

Parameters

Name Type Description
band GridBand

A GridBand object representing the band to remove.

Remarks

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