MVCxGridViewLayoutItemCollection.AddCommandItem(Action<EditModeCommandLayoutItem>) Method

Adds a new command item to the MVCxGridViewLayoutItemCollection collection and allows you to customize this item in a delegate method implementation.

Namespace: DevExpress.Web.Mvc

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

Declaration

public EditModeCommandLayoutItem AddCommandItem(
    Action<EditModeCommandLayoutItem> method
)
Public Function AddCommandItem(
    method As Action(Of EditModeCommandLayoutItem)
) As EditModeCommandLayoutItem

Parameters

Name Type Description
method Action<EditModeCommandLayoutItem>

A delegate method that accepts the created EditModeCommandLayoutItem as a parameter.

Returns

Type Description
EditModeCommandLayoutItem

A EditModeCommandLayoutItem object that is the newly added command item.

See Also