GridViewContextMenuItemCollection.Add(GridViewContextMenuCommand, String, String) Method
Adds a new item with the specified settings to the end of the collection and returns the newly created object.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public GridViewContextMenuItem Add(
GridViewContextMenuCommand command,
string name,
string text
)
#Parameters
Name | Type | Description |
---|---|---|
command | Grid |
One of the Grid |
name | String | A String value that specifies the created item’s name. Initializes the item’s Menu |
text | String | A String value that specifies the item text. Initializes the item’s Menu |
#Returns
Type | Description |
---|---|
Grid |
A Grid |
#Remarks
Use the Add method to add a new item with the specified settings to the GridViewContextMenuItemCollection object.