Skip to main content

DataGridView.VisibleColumns Property

Gets the collection of visible columns.

Namespace: DevExpress.XamarinForms.DataGrid

Assembly: DevExpress.XamarinForms.Grid.dll

NuGet Package: DevExpress.XamarinForms.Grid

Declaration

public IReadOnlyList<GridColumn> VisibleColumns { get; }

Property Value

Type Description
IReadOnlyList<GridColumn>

A list of columns visible in the grid.

Remarks

Use the VisibleColumns property to obtain the list of columns the grid currently displays.

To show or hide an individual column, use the GridColumn.IsVisible property. Note that if you group data by a column (set GridColumn.IsGrouped to true), the grid does not display this column as a regular column but shows its header and values in group rows. In this case, the VisibleColumns collection does not include this column, though it is considered to be visible (its GridColumn.IsVisible property value is true). You can use the DataGridView.ShowGroupedColumns property to show a grouped column as a regular one.

To access all columns the grid contains, use the DataGridView.Columns property.

See Also