Skip to main content
Tab

GridViewContextMenuItemCollection.Add(GridViewContextMenuCommand) Method

Adds a new item with the specified command to the end of the collection and returns the newly created object.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

public GridViewContextMenuItem Add(
    GridViewContextMenuCommand command
)

Parameters

Name Type Description
command GridViewContextMenuCommand

One of the GridViewContextMenuCommand values that identifies the executed command. This value is assigned to the GridViewContextMenuItem.Command property.

Returns

Type Description
GridViewContextMenuItem

A GridViewContextMenuItem object that is the newly created item.

Remarks

Use the Add method to add a new item with the specified command to the GridViewContextMenuItemCollection object.

See Also