Skip to main content
Tab

ASPxGridViewContextMenuEventArgs.CreateItem(String, String) Method

Creates a new item with the specified settings.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

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