GridViewContextMenuItem.Command Property
Gets or sets the name of a command executed when clicking a context menu item.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
GridViewContextMenuCommand | One of the GridViewContextMenuCommand enumeration values specifying the item’s command name. |
Available values:
Name | Description |
---|---|
FullExpand | A command that expands all group rows. |
FullCollapse | A command that collapses all group rows. |
SortAscending | A command that sorts grid data by the current column ascending. |
SortDescending | A command that sorts grid data by the current column decending. |
ClearSorting | A command that clears sorting by the current column. |
ClearFilter | A command that clears the filter applied to the current column. |
ShowFilterEditor | A command that controls the filter builder visibility. |
ShowFilterRow | A command that controls the filter row visibility. |
ShowFilterRowMenu | A command that controls the filter row menu availability. |
GroupByColumn | A command that groups grid data by the current column. |
UngroupColumn | A command that ungroups grid data by the current column. |
ClearGrouping | A command that clears the grouping in the group panel. |
ShowGroupPanel | A command that controls the group panel visibility. |
ShowSearchPanel | A command that controls the search panel visibility. |
ShowColumn | A command that shows the current column in the grid |
HideColumn | A command that hides the current column. |
ShowCustomizationWindow | A command that controls the customization window visibility. |
ShowFooter | A command that controls the footer visibility. |
ShowCustomizationDialog | A command that controls the customization dialog visibility. |
NewRow | A command that creates a new row. |
EditRow | A command that allows editing the current data row. |
DeleteRow | A command that deletes the current data row. |
ExpandRow | A command that expands the current group row. |
CollapseRow | A command that collapses the current group row. |
ExpandDetailRow | A command that expands the current detail row. |
CollapseDetailRow | A command that collapses the current detail row. |
Refresh | A command that refreshes grid data. |
CopyToClipboard | A command that copies a cell to the clipboard. |
PasteFromClipboard | A command that pastes a cell from the clipboard. |
GroupSummarySum | A command that switches the visibility of the Sum summary item in the group footer. |
GroupSummaryMin | A command that switches the visibility of the Min summary item in the group footer. |
GroupSummaryMax | A command that switches the visibility of the Max summary item in the group footer. |
GroupSummaryCount | A command that switches the visibility of the Count summary item in the group footer. |
GroupSummaryAverage | A command that switches the visibility of the Average summary item in the group footer. |
GroupSummaryNone | A command that hides every group footer summary item in the current column. |
SummarySum | A command that displays a sum of the current column cell values. |
SummaryMin | A command that displays the minimum cell value in the current column. |
SummaryMax | A command that displays the maximum cell value in the current column. |
SummaryCount | A command that displays a count of the current column cell values. |
SummaryAverage | A command that displays an average cell value in the current column. |
SummaryNone | A command that hides every summary item in the current column. |
GroupSummaryMenu | A command that identifies the Group Summary item. |
ExportToPdf | A command that exports grid data in PDF format. |
ExportToDocx | A command that exports grid data in DOCX format. |
ExportToRtf | A command that exports grid data in RTF format. |
ExportToCsv | A command that exports grid data in CSV format. |
ExportToXls | A command that exports grid data in XLS format. |
ExportToXlsx | A command that exports grid data in XLSX format. |
ExportMenu | A command that invokes the menu allowing you to export grid data in an appropriate format. |
Custom | A custom user command. |
Remarks
Use the Command property to specify a command that will be executed when a context menu item is clicked.
Note
The ASPxGridBase.KeyFieldName property should be specified when using the following grid features:
- data editing;
- adding new and deleting existing data item;
- selecting data item;
- master-detail view;
- endless paging.