Skip to main content
A newer version of this page is available. .

GridCommands Class

Provides access to grid commands.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v18.2.dll

Declaration

public static class GridCommands

Remarks

The grid has more than twenty built-in commands allowing you to expand/collapse group rows, move the row or cell focus, apply sorting and grouping, etc. All these commands have corresponding methods. For instance, the GridControl.ClearGrouping method corresponds to the GridCommands.ClearGrouping command.

<Button Command="dxg:GridCommands.ClearGrouping"
        CommandTarget="{Binding Path=View, ElementName=grid}">Ungroup</Button>

Inheritance

Object
GridCommands
See Also