Skip to main content

GridBandColumnCollection.Insert(Int32, BandedGridColumn) Method

Adds the specified column to the specified position within the collection.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v24.1.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

public virtual void Insert(
    int index,
    BandedGridColumn column
)

Parameters

Name Type Description
index Int32

An integer value representing the zero-based index where the specified column should be inserted. If negative or exceeds the number of elements, an exception is raised.

column BandedGridColumn

A BandedGridColumn object representing the column to insert.

Remarks

Columns cannot be added to the collection if the band owning this collection has child bands. In this case, calling the Insert method has no effect.

Use the GridBandColumnCollection.Add method to add the column to the end of the collection. The GridBandColumnCollection.MoveTo method can be used to move a column to another position within the collection.

See Also