[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Collapse]Windows 10 App Controls
 [Expand]Getting Started
  [Expand]Navigation and Layout
  [Expand]Data Editors
  [Collapse]Data Grid
   [Expand]Getting Started
   [Expand]Binding to Data
   [Expand]Data Management
   [Expand]Data Editing
   [Expand]Asynchronous Virtual Source
   [Expand]Data Scrolling
   [Collapse]Visual Elements
     Auto Filter Row
     Column Header Panel
     Column Chooser
     Context Menus
     Fixed Summary Panel
     Group Panel
     Group Row
     New Item Row
     Row Indicator Panel
     Search Panel
     Filter Panel
  [Expand]Map Control
  [Expand]PDF Viewer
   SVG Icon
   Context Menu
 [Expand]Themes and Color Schemes
  Get More Help
 [Expand]API Reference
[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

The Universal Grid Control provides context menus that can be invoked by right-clicking the grid's Visual Elements and provide the ability to perform actions linked to these elements.

By default, the grid provides a column context menu that is invoked by right-clicking a column header and allows end-users to show/hide the Group Panel and Column Chooser and manage sorting and grouping.

Below is a list of properties that allow you to specify the grid's context menus for certain visual elements.

Property Elements
GridControl.ColumnMenu Column headers
GridControl.RowCellMenu Data cells, rows and the Row Indicator Panel
GridControl.GridMenu Empty space within the grid
GridControl.GroupPanelMenu Group Panel

To customize context menus' content and behavior, handle the following events: GridControl.ContextMenuOpening, GridControl.ContextMenuOpened, GridControl.ContextMenuClosed.

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