BaseColumn.Visible Property
Gets or sets whether the column is displayed within a View. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v19.1.Core.dll
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, to display the column within a View; otherwise, false. |
Remarks
To hide the column, set its Visible property to false. If a column’s ColumnBase.ShowInColumnChooser option is enabled, its header (when the column is hidden) is displayed within the Column Chooser.
To show a hidden column, set its Visible property to true. To show it at a specified position among visible columns, use its BaseColumn.VisibleIndex property.
To learn more, see Hiding and Displaying Columns and Bands and Showing and Hiding Columns.
Note
Even if columns are hidden from the GridControl, you can sort and group values by them.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Visible property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.