Skip to main content

GridColumnCollection.Remove(GridColumn) Method

Removes the specified column from the collection.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v24.1.dll

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

Declaration

public virtual void Remove(
    GridColumn column
)

Parameters

Name Type Description
column GridColumn

A GridColumn object representing the column to be removed.

Remarks

The code below removes the currently focused column.

gridView1.Columns.Remove(gridView1.FocusedColumn);
See Also