PopupMenuShowingEventArgs Class
Provides data for the PivotGridControl.PopupMenuShowing event.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.XtraPivotGrid.v18.1.dll
Declaration
Remarks
The PivotGridControl.PopupMenuShowing event fires each time an end-user attempts to invoke a context menu, allowing you to identify which menu is about to be displayed, customize the menu or prevent it from being invoked. This event does not fire if showing the context menu is disabled via the PivotGridControl.OptionsMenu property.
The PopupMenuShowingEventArgs event parameter provides the PivotGridMenuEventArgsBase.Point and PopupMenuShowingEventArgs.HitInfo properties used to identify the right-clicked point and obtain which element is located under the point, respectively. If the point is located inside a field header or field value, use the PopupMenuShowingEventArgs.Field and PivotGridMenuEventArgsBase.Area properties, to identify which field has been right-clicked, and in which area this field resides, respectively.
Use the PivotGridMenuEventArgsBase.Menu property to obtain the context menu about to be displayed, and customize it. The type of the menu is identified via the PivotGridMenuEventArgsBase.MenuType property.
To specify whether to invoke the context menu, use the PivotGridMenuEventArgsBase.Allow property.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the PopupMenuShowingEventArgs class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.