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

GridViewLayoutItemCollection.AddCommandItem(String) Method

Adds the specified item to the GridViewLayoutItemCollection collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

public EditModeCommandLayoutItem AddCommandItem(
    string columnName
)

Parameters

Name Type Description
columnName String

The command item name.

Returns

Type Description
EditModeCommandLayoutItem

The newly added command item.

Remarks

settings.CommandColumn.Visible = true;
settings.CommandColumn.ShowDeleteButton = true;
settings.CommandColumn.ShowEditButton = true;
settings.CommandColumn.Name = "CommandColumn";
...
settings.SettingsAdaptivity.AdaptiveDetailLayoutProperties.Items.AddCommandItem("CommandColumn");
See Also