Back to Devexpress

MVCxGridViewToolbarItemCollection.Add(GridViewToolbarCommand, Boolean) Method

aspnetmvc-devexpress-dot-web-dot-mvc-dot-mvcxgridviewtoolbaritemcollection-dot-add-x28-devexpress-dot-web-dot-gridviewtoolbarcommand-system-dot-boolean-x29.md

latest1.9 KB
Original Source

MVCxGridViewToolbarItemCollection.Add(GridViewToolbarCommand, Boolean) Method

Adds a new toolbar item to the collection.

Namespace : DevExpress.Web.Mvc

Assembly : DevExpress.Web.Mvc5.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public MVCxGridViewToolbarItem Add(
    GridViewToolbarCommand command,
    bool beginGroup
)
vb
Public Function Add(
    command As GridViewToolbarCommand,
    beginGroup As Boolean
) As MVCxGridViewToolbarItem

Parameters

NameTypeDescription
commandGridViewToolbarCommand

A GridViewToolbarCommand object that is the command that corresponds to this toolbar item.

| | beginGroup | Boolean |

true , if the current toolbar item starts a group; otherwise, false.

|

Returns

TypeDescription
MVCxGridViewToolbarItem

A MVCxGridViewToolbarItem object that is the newly added toolbar item.

|

See Also

MVCxGridViewToolbarItemCollection Class

MVCxGridViewToolbarItemCollection Members

DevExpress.Web.Mvc Namespace