Skip to main content

LayoutViewOptionsHeaderPanel.EnableRowModeButton Property

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

Namespace: DevExpress.XtraGrid.Views.Layout

Assembly: DevExpress.XtraGrid.v24.1.dll

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

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public bool EnableRowModeButton { get; set; }

Property Value

Type Default Description
Boolean true

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

Property Paths

You can access this nested property as listed below:

Object Type Path to EnableRowModeButton
LayoutView
.OptionsHeaderPanel .EnableRowModeButton

Remarks

The EnableRowModeButton property allows you to disable the corresponding button within the Header Panel and the shortcut (ALT+2) used to activate the One Row 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.ShowRowModeButton to hide the corresponding button within the Header Panel. If the button is hidden and the EnableRowModeButton property is set to true, the One Row view mode can still be invoked using the corresponding shortcut.

See Also