GridControl.Columns Property

Provides access to the grid’s column collection.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll


[XtraSerializableProperty(true, true, true)]
public GridColumnCollection Columns { get; }

Property Value

Type Description

A GridColumnCollection object that represents a collection of columns within the grid.


The grid stores its columns within the Columns collection. This collection provides methods that allow you to add new and remove existing columns. Individual columns are represented by GridColumnBase descendants, and can be accessed using indexed notation or by the field name (ColumnBase.FieldName).

To access only visible columns whose ColumnBase.Visible property is set to true, use a grid’s GridControlBase.VisibleColumns property.

See Also