Back to Devexpress

VGridOptionsMenu.EnableContextMenu Property

windowsforms-devexpress-dot-xtraverticalgrid-dot-rows-dot-vgridoptionsmenu.md

latest2.6 KB
Original Source

VGridOptionsMenu.EnableContextMenu Property

Gets or sets whether users can invoke a context menu with a right-click on a property.

Namespace : DevExpress.XtraVerticalGrid.Rows

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

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

Declaration

csharp
[XtraSerializableProperty]
public bool EnableContextMenu { get; set; }
vb
<XtraSerializableProperty>
Public Property EnableContextMenu As Boolean

Property Value

TypeDescription
Boolean

true if users can invoke a context menu with a right-click on a property; otherwise, false. Since version 17.2, the default is true.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to EnableContextMenu
VGridControlBase

.OptionsMenu .EnableContextMenu

|

Remarks

If the EnableContextMenu option is enabled, users can invoke a context menu with a right-click on a property. The menu contains the predefined Reset command that sets the property to its default value. To populate the menu with custom commands, handle the VGridControlBase.PopupMenuShowing event.

Note

Version Compatibility Since version 17.2, the EnableContextMenu property default value is true. For more information on version compatibility, see Version Compatibility: Default Property Values.

See Also

PopupMenuShowing

VGridOptionsMenu Class

VGridOptionsMenu Members

DevExpress.XtraVerticalGrid.Rows Namespace