[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Collapse]Pivot Grid
   [Expand]Getting Started
   [Expand]Binding to Data
   [Expand]Data Shaping
   [Expand]Data Analysis
   [Expand]Printing and Exporting
   [Collapse]End-User Interaction
     Context Menus
     Copy Data to the Clipboard
     Data Scrolling and Navigation
   [Expand]MVVM Enhancements
   [Expand]UI Elements
   [Expand]End-User Capabilities
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Context Menus

Pivot Grid can display three types of popup menus that enable an end-user to manage data (apply sorting, reorder field headers, etc.) and customize the control by expanding and collapsing field values. All these menus can be customized. For example, you can remove existing menu items and/or add new items.

Expanded Context Menus Overview

To obtain the context menu currently being displayed within the PivotGridControl, use the PivotGridControl.GridMenu property.

Menu Type Description Availability Image
Field Value This menu is shown when an end-user right-clicks field values. PivotGridControl.IsFieldValueMenuEnabled
Field Header This menu is shown when an end-user right-clicks a Field Header. PivotGridControl.IsHeaderMenuEnabled
Header Area This menu is shown when an end-user right-clicks the Header Area. PivotGridControl.IsHeaderAreaMenuEnabled

Expanded Customizing Context Menus

PivotGridControl provides multiple properties that allow you to customize its context menus by adding new menu items or removing existing items. These properties return a BarManagerActionCollection object that provides multiple methods, used to manage menu items contained within a context menu.

Menu Type Property
Field Value PivotGridControl.FieldValueMenuCustomizations
Field Header PivotGridControl.HeaderMenuCustomizations
Header Area PivotGridControl.HeaderAreaMenuCustomizations
Cells PivotGridControl.CellMenuCustomizations

When customizing a menu (e.g. removing or moving default items), menu items are referred to by name. Default menu item names are listed in the DefaultMenuItemNames.

You can also handle the PivotGridControl.PopupMenuShowing event raised before a context menu is invoked allowing you to modify it on the fly.

Expanded See Also

Is this topic helpful?​​​​​​​