GridControl.Columns Property
Provides access to the grid’s column collection.
Namespace: DevExpress.UI.Xaml.Grid
Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
Declaration
[XtraSerializableProperty(true, true, true)]
[GridStoreAlwaysProperty]
public GridColumnCollection Columns { get; }
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