ASPxGridViewCommandButtonEventArgs.ButtonType Property
Gets the type of the command button currently being initialized.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
ColumnCommandButtonType | One of the ColumnCommandButtonType enumeration values. |
Available values:
Name | Description |
---|---|
Edit | Corresponds to the Edit command. Switches the ASPxGridView to edit mode. |
New | Corresponds to the New command. Creates a new data row. |
Delete | Corresponds to the Delete command. Deletes the current data row. |
Select | Corresponds to the Select command. Selects/deselects data rows. |
Update | Corresponds to the Update command. Saves all the changes made to the current data row and switches the ASPxGridView to browse mode. |
Cancel | Corresponds to the Cancel command. Discards any changes made to the current data row and switches the ASPxGridView to browse mode. |
ClearFilter | Corresponds to the Clear command. Clears the filter expression applied to the ASPxGridView. |
SelectCheckbox | Corresponds to the Select command initiated via a select check box or radio button. Selects/deselects data rows. |
ApplyFilter | Corresponds to the Apply command. Applies the filter specified in the filter row. |
ApplySearchPanelFilter | Corresponds to the Apply command. Applies the filter specified in the search panel. |
ClearSearchPanelFilter | Corresponds to the Clear command. Clears the filter specified in the search panel. |
ShowAdaptiveDetail | Corresponds to the Show Adaptive Detail command. Expands the current adaptive detail row. |
HideAdaptiveDetail | Corresponds to the Hide Adaptive Detail command. Collapses the current adaptive detail row. |
Recover | Corresponds to the Recover command. Recovers the deleted rows. |
CustomizationDialogApply | Corresponds to the Apply command. Apply changes made in the grid’s Customization Dialog. |
CustomizationDialogClose | Corresponds to the Close command. Closes the Customization Dialog and discards all changes made in this dialog. |
PreviewChanges | Corresponds to the Preview changes command. Switches the grid to Changes Preview mode to manage the modified rows. |
HidePreview | Corresponds to the Hide preview command. Closes the Changes Preview mode and displays all grid rows including modified ones. |
UpdateSummaries | Corresponds to the Update summaries command. Updates total and group summary values. |
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ButtonType property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.