Skip to main content
A newer version of this page is available. .

GridColumnCollection.Remove(GridColumn) Method

Removes the specified column from the collection.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v21.2.dll

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

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