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.v20.1.dll

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public bool AllowShowHide { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
Public Property AllowShowHide As Boolean

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
.OptionsColumn.AllowShowHide
LayoutViewColumn
.OptionsColumn.AllowShowHide
BandedGridColumn
.OptionsColumn.AllowShowHide

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.

See Also