windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-dot-layoutviewoptionsheaderpanel-28e965a3.md
Gets or sets whether the Multiple Rows view mode can be enabled via the corresponding button within the Header Panel and keyboard shortcut (ALT+4).
Namespace : DevExpress.XtraGrid.Views.Layout
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
[DefaultValue(true)]
[XtraSerializableProperty]
public bool EnableMultiRowModeButton { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
Public Property EnableMultiRowModeButton As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true if an end-user can enable the Multiple Rows view mode; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to EnableMultiRowModeButton |
|---|---|
| LayoutView |
.OptionsHeaderPanel .EnableMultiRowModeButton
|
The EnableMultiRowModeButton property allows you to disable the corresponding button within the Header Panel and the shortcut (ALT+4) used to activate the Multiple Rows 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.ShowMultiRowModeButton to hide the corresponding button within the Header Panel. If the button is hidden and the EnableMultiRowModeButton property is set to true , the Multiple Rows view mode can still be invoked using the corresponding shortcut.
See Also
LayoutViewOptionsHeaderPanel Class