Skip to main content

GridColumnCollection.Insert(Int32, GridColumn) Method

Inserts the specified column at the specified position.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v23.2.dll

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

Declaration

public void Insert(
    int index,
    GridColumn column
)

Parameters

Name Type Description
index Int32

A zero-based integer specifying the column’s position within the collection. If the specified index is negative or greater than or equal to the number of columns in the collection, an exception will be thrown.

column GridColumn

A GridColumn object to be added to the collection.

See Also