Skip to main content

GridBandCollection.Remove(GridBand) Method

Removes the specified band from the collection.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v24.2.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