Back to Devexpress

GridViewContextMenu Class

aspnet-devexpress-dot-web-ff003621.md

latest3.6 KB
Original Source

GridViewContextMenu Class

A context menu.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class GridViewContextMenu :
    ASPxPopupMenu
vb
Public Class GridViewContextMenu
    Inherits ASPxPopupMenu

The following members return GridViewContextMenu objects:

Remarks

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

Online Demo

Implements

Show 15 items

IComponent

IDisposable

IParserAccessor

IDataBindingsAccessor

IControlBuilderAccessor

IControlDesignerAccessor

IExpressionsAccessor

IAttributeAccessor

IUrlResolutionService

INamingContainer

IPostBackDataHandler

IPostBackEventHandler

ICallbackEventHandler

IPropertiesOwner

IDataSourceViewSchemaAccessor

Inheritance

Show 11 items

Object Control WebControl ASPxWebControlBase ASPxWebControl ASPxDataWebControlBase ASPxHierarchicalDataWebControl ASPxMenuBase ASPxPopupMenu GridViewContextMenu MVCxGridViewContextMenu

See Also

GridViewContextMenu Members

DevExpress.Web Namespace