Skip to main content
A newer version of this page is available. .
All docs
V20.2
Tab

GridViewContextMenu Class

A context menu.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

public class GridViewContextMenu :
    ASPxPopupMenu

The following members accept/return GridViewContextMenu objects:

Remarks

<dx:ASPxGridView ID="Grid" OnContextMenuInitialize="Grid_ContextMenuInitialize" >
    ...
</dx:ASPxGridView>
protected void Grid_ContextMenuInitialize(object sender, ASPxGridViewContextMenuInitializeEventArgs e) {
    if(e.MenuType == GridViewContextMenuType.Rows) {
        e.ContextMenu.Items.Add("Item name", "Command name");
    }
}

Online Demo

See Also