The GridControl stores its columns within the Columns collection. This collection provides methods that allow you to add new and remove existing columns. The GridColumn objects represent individual columns. Columns can be accessed using indexed notation or by the field name (ColumnBase.FieldName).
Xaml |
<dxg:GridControl.Columns>
<dxg:GridColumn FieldName="ProductName"/>
<dxg:GridColumn FieldName="UnitPrice"/>
</dxg:GridControl.Columns>
|
In Card Views, columns contained within the Columns collection correspond to card fields. In Table Views, they are displayed as columns.

Use the GridViewBase.VisibleColumns property to access only visible columns whose BaseColumn.Visible property is set to true,