OptionsColumn.AllowShowHide Property
Gets or sets whether the column can be hidden or restored by an end-user.
Namespace: DevExpress.XtraGrid.Columns
Assembly: DevExpress.XtraGrid.v24.1.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | true | true if the column can be hidden or restored by an end-user; otherwise, false. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to AllowShowHide |
---|---|
GridColumn |
|
Remarks
If the AllowShowHide property is set to false, the column, if visible, cannot be hidden by dragging it away from the Column Header Panel. Similarly, if the column is hidden, it cannot be restored by dragging it from the Customization Form onto the column header panel.
See GridOptionsCustomization.AllowQuickHideColumns, to learn how columns can be hidden by end-users.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowShowHide 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.