aspnetmvc-116384-components-vertical-grid-data-representation-basics-rows-command-row.md
End-users can manipulate ASP.NET MVC VerticalGrid data using a command row. You can access command row settings through the VerticalGridSettings.CommandRow property.
A command row is represented by the MVCxVerticalGridCommandRow class. It provides a set of commands that allows end-users to switch the VerticalGrid to edit mode, select columns, add and delete columns, etc.
A command row allows multiple command items to be displayed within a cell. A single command is represented by a command item. The following command items are available.
|
Command
|
Description
|
Settings
|
Visibility
| | --- | --- | --- | --- | |
New
|
Creates a new data column.
|
ASPxVerticalGridCommandButtonSettings.NewButton
|
VerticalGridCommandRow.ShowNewButton,
VerticalGridCommandRow.ShowNewButtonInHeader
| |
Edit
|
Starts editing the current column.
|
ASPxVerticalGridCommandButtonSettings.EditButton
|
VerticalGridCommandRow.ShowEditButton
| |
Delete
|
Deletes the current data column.
|
ASPxVerticalGridCommandButtonSettings.DeleteButton
|
VerticalGridCommandRow.ShowDeleteButton
| |
Select
|
Selects/deselects data columns.
|
ASPxVerticalGridCommandButtonSettings.SelectButton
|
VerticalGridCommandRow.ShowSelectButton,
VerticalGridCommandRow.ShowSelectCheckbox
| |
Recover
|
Recovers a deleted record.
|
ASPxVerticalGridCommandButtonSettings.RecoverButton
|
VerticalGridCommandRow.ShowRecoverButton
|
By default, command items are displayed as a link. They can also be displayed as a button or image. Use the VerticalGridCommandRow.ButtonRenderMode (through VerticalGridSettings.CommandRow .ButtonRenderMode ) property to specify how the command column renders its command items.