Back to Devexpress

GridView.ShowGridMenu Event

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridview-563d5c4f.md

latest4.6 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
[Browsable(false)]
[DXCategory("Behavior")]
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("You should use the 'PopupMenuShowing' instead", false)]
public event GridMenuEventHandler ShowGridMenu
vb
<DXCategory("Behavior")>
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
<Obsolete("You should use the 'PopupMenuShowing' instead", False)>
Public Event ShowGridMenu As GridMenuEventHandler

Event Data

The ShowGridMenu event's data class is GridMenuEventArgs. The following properties provide information specific to this event:

PropertyDescription
AllowGets or sets whether to display the context menu. Inherited from BasePopupMenuShowingEventArgs.
HitInfoGets an object that identifies a clicked element. Inherited from PopupMenuShowingEventArgs.
MenuGets or sets the popup menu that is about to be displayed. Inherited from PopupMenuShowingEventArgs.
MenuTypeGets the type of the Grid View’s menu to be invoked. Inherited from PopupMenuShowingEventArgs.
PointGets or sets coordinates of the invoked context menu (top-left corner) relative to the parent control. Inherited from BasePopupMenuShowingEventArgs.
ScreenPointGets coordinates of the invoked context menu (top-left corner) relative to the screen. Inherited from BasePopupMenuShowingEventArgs.

The event data class exposes the following methods:

MethodDescription
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

GridMenuItemClick

OptionsMenu

PopupMenuShowing

GridView Class

GridView Members

DevExpress.XtraGrid.Views.Grid Namespace