Back to Devexpress

GridColumnCollection.Remove(GridColumn) Method

windowsforms-devexpress-dot-xtragrid-dot-columns-dot-gridcolumncollection-dot-remove-x28-devexpress-dot-xtragrid-dot-columns-dot-gridcolumn-x29.md

latest2.0 KB
Original Source

GridColumnCollection.Remove(GridColumn) Method

Removes the specified column from the collection.

Namespace : DevExpress.XtraGrid.Columns

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
public virtual void Remove(
    GridColumn column
)
vb
Public Overridable Sub Remove(
    column As GridColumn
)

Parameters

NameTypeDescription
columnGridColumn

A GridColumn object representing the column to be removed.

|

Remarks

The code below removes the currently focused column.

csharp
gridView1.Columns.Remove(gridView1.FocusedColumn);
vb
gridView1.Columns.Remove(gridView1.FocusedColumn)

See Also

Add

AddRange(GridColumn[])

AbsoluteIndex

Caption

GridColumnCollection Class

GridColumnCollection Members

DevExpress.XtraGrid.Columns Namespace