Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DataGridView.VisibleColumns Property

Gets the collection of visible columns.

Namespace: DevExpress.Maui.DataGrid

Assembly: DevExpress.Maui.DataGrid.dll

NuGet Package: DevExpress.Maui.DataGrid

#Declaration

C#
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