The requested page is not available for the requested platform. You are viewing the content for Default platform.

GridControl.Columns Property

Provides access to the grid's column collection.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v19.1.dll

Declaration

[XtraSerializableProperty(true, true, true)]
[GridStoreAlwaysProperty]
public GridColumnCollection Columns { get; }
<XtraSerializableProperty(True, True, True)>
<GridStoreAlwaysProperty>
Public ReadOnly Property Columns As GridColumnCollection

Property Value

Type Description
GridColumnCollection

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

Remarks

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