Skip to main content
A newer version of this page is available. .

LayoutViewOptionsHeaderPanel.EnableCarouselModeButton Property

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

Namespace: DevExpress.XtraGrid.Views.Layout

Assembly: DevExpress.XtraGrid.v19.1.dll

Declaration

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

Property Value

Type Default Description
Boolean **true**

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

Property Paths

You can access this nested property as listed below:

Object Type Path to EnableCarouselModeButton
LayoutView
.OptionsHeaderPanel.EnableCarouselModeButton

Remarks

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

See Also