windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridoptionsmenu.md
Gets or sets a value indicating whether the PivotGridControl.FormatRules context menu is allowed and can be invoked by an end-user.
Namespace : DevExpress.XtraPivotGrid
Assembly : DevExpress.XtraPivotGrid.v25.2.dll
NuGet Package : DevExpress.Win.PivotGrid
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool EnableFormatRulesMenu { get; set; }
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property EnableFormatRulesMenu As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if the context menu is allowed and can be invoked by an end-user; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to EnableFormatRulesMenu |
|---|---|
| PivotGridControl |
.OptionsMenu .EnableFormatRulesMenu
|
If the EnableFormatRulesMenu option is enabled, an end-user can apply format rules for a data cells by right-clicking the data area (see the image below).
Important
To enable the multi-column item layout at the third menu level shown in the image above, add the BarManager component to the form. Otherwise, menu elements at the third menu level will be arranged in a linear list; specific menu items will be displayed without glyphs.
See Also