Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LayoutViewOptionsHeaderPanel.EnableSingleModeButton Property

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

Namespace: DevExpress.XtraGrid.Views.Layout

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

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

#Property Value

Type Default Description
Boolean true

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

#Property Paths

You can access this nested property as listed below:

Object Type Path to EnableSingleModeButton
LayoutView
.OptionsHeaderPanel .EnableSingleModeButton

#Remarks

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

See Also