GridControlCommands Class
In This Article
Contains built-in grid commands.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
public class GridControlCommands :
DataControlCommandsBase
#Related API Members
The following members return GridControlCommands objects:
#Remarks
The GridControlCommands and DataControlCommandsBase classes store the following commands:
Property | Description |
---|---|
Change |
Toggles the specified group row’s expanded state. |
Change |
Toggles the visibility of the Group Panel. |
Clear |
Clears the filter expression. |
Clear |
Ungroups the grid. |
Collapse |
Collapses all group rows. |
Expand |
Expands all group rows. |
Hide |
Hides the Search Panel. |
Move |
Moves focus to the first visible row. |
Move |
Moves focus to the last visible row. |
Move |
Moves focus forward by the number of rows displayed onscreen. |
Move |
Moves focus to the row that follows the focused row. |
Move |
Moves focus backward by the number of rows displayed onscreen. |
Move |
Moves focus to the row that precedes the focused row. |
Show |
Invokes the Column Chooser. |
Show |
Displays the Search Panel. |
The code snippet below demonstrates how to use built-in commands:
<Button Content="Show Column Chooser"
Command="{x:Bind grid.Commands.ShowColumnChooser}"/>
#Inheritance
Object
BindableBase
DevExpress.WinUI.Core.Internal.CommandsContainerBase
DevExpress.WinUI.Core.Internal.CommandsContainer<DataControlBase>
DataControlCommandsBase
GridControlCommands
See Also