Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Context Menu

Category Name Descending
Product Name 
Quantity Per Unit 
Unit Price 
Units In Stock 
Discontinued 
ExpandCategory Name: Seafood
CollapseCategory Name: Produce
 Longlife Tofu5 kg pkg.$10.004
 Manjimup Dried Apples50 - 300 g pkgs.$53.0020
 Rössle Sauerkraut25 - 825 g cans$45.6026
 Tofu40 - 100 g pkgs.$23.2535
 Uncle Bob's Organic Dried Pears12 - 1 lb pkgs.$30.0015
   Sum=$161.85  
ExpandCategory Name: Meat/Poultry
ExpandCategory Name: Grains/Cereals
ExpandCategory Name: Dairy Products
   Sum=$2,222.71  
Page 1 of 2 (13 items)Prev12Next

The DevExpress ASP.NET Grid View (ASPxGridView) context menu is a popup menu displayed when an end-user right-clicks a grid element. The control provides different context menu types for the following elements: row, column header, footer, group footer, and group panel. You can specify the visibility of all context menu types using the Enabled property. To control the menu visibility for a particular element, use the following properties.

By default, ASPxGridView provides a set of context menu items for every menu type. You can customize the default items or add your own custom items. At runtime, you can use the ContextMenuInitialize event to customize default menu items and create custom items.

In this demo, the context menu for each element is enabled by setting the Enabled property to true. The server-side ContextMenuInitialize event is handled to add an Export item. To process the Export item click, the client-side ContextMenuItemClick and server-side ContextMenuItemClick events are handled.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxGridViewDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxGridViewDemos