Back to Devexpress

Command Item

aspnetmvc-16877-components-grid-view-visual-elements-command-item.md

latest5.4 KB
Original Source

Command Item

  • Feb 06, 2023

Command items allow end-users to select and delete data rows, switch a GridView to an edit mode, update data, etc. A command item represents a single command. For instance, the Delete item allows end-users to delete data rows. There are eight command items: New , Edit , Delete , Select , Update , Clear Filter , Apply Filter and Cancel. By default, a command item is represented by a link. It can also be represented by a button or image.

Command columns can also display custom buttons.

The table below lists the main members that affect element appearance and functionality.

|

Characteristics

|

Members

| | --- | --- | |

Representation

|

GridViewCommandColumn.ButtonRenderMode (via GridViewSettings.CommandColumn .ButtonRenderMode ),

GridViewCommandButtonSettings.RenderMode

| |

Accessibility

|

ASPxGridViewCommandButtonSettings.NewButton (via GridViewSettings.SettingsCommandButton .NewButton ),

ASPxGridViewCommandButtonSettings.DeleteButton (via GridViewSettings.SettingsCommandButton .DeleteButton ),

ASPxGridViewCommandButtonSettings.UpdateButton (via GridViewSettings.SettingsCommandButton .UpdateButton ),

ASPxGridViewCommandButtonSettings.CancelButton (via GridViewSettings.SettingsCommandButton .CancelButton ),

ASPxGridViewCommandButtonSettings.EditButton (via GridViewSettings.SettingsCommandButton .EditButton ),

ASPxGridViewCommandButtonSettings.SelectButton (via GridViewSettings.SettingsCommandButton .SelectButton ),

GridViewCommandColumn.CustomButtons (via GridViewSettings.CommandColumn .CustomButtons ),

ASPxGridViewCommandButtonSettings.ApplyFilterButton (via GridViewSettings.SettingsCommandButton .ApplyFilterButton )

| |

Visibility

|

GridViewCommandColumn.ShowNewButton (via GridViewSettings.CommandColumn .ShowNewButton ),

GridViewCommandColumn.ShowNewButtonInHeader (via GridViewSettings.CommandColumn .ShowNewButtonInHeader ),

GridViewCommandColumn.ShowDeleteButton (via GridViewSettings.CommandColumn .ShowDeleteButton ),

GridViewCommandColumn.ShowUpdateButton (via GridViewSettings.CommandColumn .ShowUpdateButton ),

GridViewCommandColumn.ShowCancelButton (via GridViewSettings.CommandColumn .ShowCancelButton ),

GridViewCommandColumn.ShowEditButton (via GridViewSettings.CommandColumn .ShowEditButton ),

GridViewCommandColumn.ShowSelectButton (via GridViewSettings.CommandColumn .ShowSelectButton ),

GridViewCommandColumn.ShowApplyFilterButton (via GridViewSettings.CommandColumn .ShowApplyFilterButton )

| |

Action

|

ASPxClientGridView.CustomButtonClick (via MVCxClientGridView .CustomButtonClick )

| |

Style

|

GridViewStyles.CommandColumnItem (via GridViewSettings.Styles .CommandColumnItem )

|