windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridview-563d5c4f.md
You should use the 'PopupMenuShowing' instead
Enables you to customize or prohibit grid context menus.
Namespace : DevExpress.XtraGrid.Views.Grid
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
[Browsable(false)]
[DXCategory("Behavior")]
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("You should use the 'PopupMenuShowing' instead", false)]
public event GridMenuEventHandler ShowGridMenu
<DXCategory("Behavior")>
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
<Obsolete("You should use the 'PopupMenuShowing' instead", False)>
Public Event ShowGridMenu As GridMenuEventHandler
The ShowGridMenu event's data class is GridMenuEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Allow | Gets or sets whether to display the context menu. Inherited from BasePopupMenuShowingEventArgs. |
| HitInfo | Gets an object that identifies a clicked element. Inherited from PopupMenuShowingEventArgs. |
| Menu | Gets or sets the popup menu that is about to be displayed. Inherited from PopupMenuShowingEventArgs. |
| MenuType | Gets the type of the Grid View’s menu to be invoked. Inherited from PopupMenuShowingEventArgs. |
| Point | Gets or sets coordinates of the invoked context menu (top-left corner) relative to the parent control. Inherited from BasePopupMenuShowingEventArgs. |
| ScreenPoint | Gets coordinates of the invoked context menu (top-left corner) relative to the screen. Inherited from BasePopupMenuShowingEventArgs. |
The event data class exposes the following methods:
| Method | Description |
|---|---|
| ShowCustomMenu(IDXDropDownControlEx) | Invokes a custom context menu instead of the control’s menu. Inherited from BasePopupMenuShowingEventArgs. |
| ShowCustomMenu(ContextMenuStrip) | Invokes a custom context menu instead of the control’s menu. Inherited from BasePopupMenuShowingEventArgs. |
The ShowGridMenu event is obsolete. Use the GridView.PopupMenuShowing event instead.
See Also