GridView.ShowGridMenu Event
OBSOLETE
You should use the 'PopupMenuShowing' instead
Enables you to customize or prohibit grid context menus.
Namespace: DevExpress.XtraGrid.Views.Grid
Assembly: DevExpress.XtraGrid.v24.1.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
Declaration
[Browsable(false)]
[DXCategory("Behavior")]
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("You should use the 'PopupMenuShowing' instead", false)]
public event GridMenuEventHandler ShowGridMenu
Event Data
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. |
Remarks
The ShowGridMenu event is obsolete. Use the GridView.PopupMenuShowing event instead.
See Also