Back to Devexpress

LayoutViewOptionsHeaderPanel.EnableMultiColumnModeButton Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-dot-layoutviewoptionsheaderpanel-865ee80b.md

latest3.3 KB
Original Source

LayoutViewOptionsHeaderPanel.EnableMultiColumnModeButton Property

Gets or sets whether the Multiple Columns view mode can be enabled via the corresponding button within the Header Panel and keyboard shortcut (ALT+5).

Namespace : DevExpress.XtraGrid.Views.Layout

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

true if an end-user can enable the Multiple Columns view mode; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to EnableMultiColumnModeButton
LayoutView

.OptionsHeaderPanel .EnableMultiColumnModeButton

|

Remarks

The EnableMultiColumnModeButton property allows you to disable the corresponding button within the Header Panel and the shortcut (ALT+5) used to activate the Multiple Columns view mode. To prevent switching between view modes by an end-user and in code, the LayoutViewOptionsBehavior.AllowSwitchViewModes option needs to be set to false.

Use the LayoutViewOptionsHeaderPanel.ShowMultiColumnModeButton to hide the corresponding button within the Header Panel. If the button is hidden and the EnableMultiColumnModeButton property is set to true , the Multiple Columns view mode can still be invoked using the corresponding shortcut (ALT+5).

See Also

ShowMultiColumnModeButton

AllowSwitchViewModes

LayoutViewOptionsHeaderPanel Class

LayoutViewOptionsHeaderPanel Members

DevExpress.XtraGrid.Views.Layout Namespace