Back to Devexpress

GridOptionsMenu.EnableGroupPanelMenu Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsmenu-76d66c94.md

latest3.5 KB
Original Source

GridOptionsMenu.EnableGroupPanelMenu Property

Gets or sets whether end-users can invoke the group panel context menu.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool EnableGroupPanelMenu { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property EnableGroupPanelMenu As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if end-users can right-click the group panel to invoke its context menu; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to EnableGroupPanelMenu
GridView

.OptionsMenu .EnableGroupPanelMenu

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EnableGroupPanelMenu property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-grid-keep-groups-expanded/CS/KeepGroupsExpanded/Form1.cs#L21

csharp
gridView1.ExpandAllGroups();
    gridView1.OptionsMenu.EnableGroupPanelMenu = false;
}

winforms-grid-keep-groups-expanded/VB/KeepGroupsExpanded/Form1.vb#L23

vb
gridView1.ExpandAllGroups()
    gridView1.OptionsMenu.EnableGroupPanelMenu = False
End Sub

See Also

Group Panel

Group Panel Context Menu

ShowGroupPanel

GridOptionsMenu Class

GridOptionsMenu Members

DevExpress.XtraGrid.Views.Grid Namespace