Skip to main content
A newer version of this page is available. .
Tab

ASPxGridViewContextMenuEventArgs.CreateItem(String, String) Method

Creates a new item with the specified settings.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public GridViewContextMenuItem CreateItem(
    string text,
    string name
)

Parameters

Name Type Description
text String

A String value that specifies the item text. Initializes the item’s MenuItem.Text property.

name String

A String value that specifies the created item’s name. Initializes the item’s MenuItem.Name property.

Returns

Type Description
GridViewContextMenuItem

A GridViewContextMenuItem object that is the newly created item.

See Also