DataViewBase.ShowGridMenu Event
Enables you to customize the context menu.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v14.2.Core.dll
#Declaration
#Event Data
The ShowGridMenu event's handler receives an argument of the GridMenuEventArgs type. The following properties provide information specific to this event:
Property | Description |
---|---|
Customizations | Provides access to a collection of customizations of the grid menu, customized using this event handler. |
Handled |
Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.
Inherited from Routed |
Items | Gets the menu items contained within the context menu. |
Menu |
Gets information about the context menu. |
Menu |
Gets the context menu's type. |
Original |
Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class.
Inherited from Routed |
Routed |
Gets or sets the Routed |
Source | Gets the View that raised the event. |
Target |
Gets the UI element for which the context menu is shown. |
#Remarks
There are four types of context menus that enable an end-user to manage data (apply grouping and sorting, display summaries, etc.) and customize a View by showing and hiding its UI elements. All these menus can be customized. For example, you can remove existing menu items and/or add new items. This can be done in either XAML or at runtime, by handling the ShowGridMenu event (see the example below).
For information on how context menus can be customized in XAML, see Customizing Context Menus in Context Menus.