Back to Devexpress

Command Item

aspnet-3689-components-grid-view-visual-elements-command-item.md

latest3.3 KB
Original Source

Command Item

  • Nov 18, 2021

Command items allow users to select and delete data rows, switch ASPxGridView to edit mode, update data, etc. A command item is a single command. For instance, the Delete item allows users to delete data rows. There are ten command items: New , Edit , Delete , Select , Update , Clear Filter , Apply Filter , Cancel , Show Adaptive Detail , and Hide Adaptive Detail. The default command item is displayed as a link. You can also display the item as a button or image.

Command columns can also display custom buttons.

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

CharacteristicsMembers
RepresentationASPxGridViewCommandButtonSettings.RenderMode, GridViewCommandColumn.ButtonRenderMode, GridCommandButtonSettings.RenderMode
AccessibilityASPxGridViewCommandButtonSettings.NewButton, ASPxGridViewCommandButtonSettings.DeleteButton, ASPxGridViewCommandButtonSettings.UpdateButton, ASPxGridViewCommandButtonSettings.CancelButton, ASPxGridViewCommandButtonSettings.EditButton, ASPxGridViewCommandButtonSettings.SelectButton, GridViewCommandColumn.CustomButtons, ASPxGridViewCommandButtonSettings.ApplyFilterButton
VisibilityGridViewCommandColumn.ShowNewButton, GridViewCommandColumn.ShowNewButtonInHeader, GridViewCommandColumn.ShowDeleteButton, GridViewCommandColumn.ShowUpdateButton, GridViewCommandColumn.ShowCancelButton, GridViewCommandColumn.ShowEditButton, GridViewCommandColumn.ShowSelectButton, GridViewCommandColumn.ShowApplyFilterButton
ActionASPxGridView.CustomButtonCallback, ASPxClientGridView.CustomButtonClick
StyleGridViewStyles.CommandColumnItem