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

GridViewContextMenuItemCollection.Add(String) Method

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

public GridViewContextMenuItem Add(
    string text
)

Parameters

Name Type Description
text String

A String value that specifies the item text. Initializes the item’s MenuItem.Text 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 text to the GridViewContextMenuItemCollection object.

See Also