GridBandCollection.Insert(Int32) Method

Creates a new band and adds it at the specified position within a collection.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v21.2.dll


public virtual GridBand Insert(
    int index


Name Type Description
index Int32

An integer value representing the zero-based index at which the new band should be inserted.


Type Description

A GridBand object representing the new band.


If the index parameter value is zero or negative, the new band is added to the beginning of the band collection. If it is greater than or equal to the number of elements, the new band is appended to the collection. Bands following the insertion point move down to accommodate the new band. Their indexes are also updated.

See Also