Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GridColumnCollection.Insert(Int32, GridColumn) Method

In This Article

Inserts the specified column at the specified position.

Namespace: DevExpress.XtraGrid.Columns

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