A newer version of this page is available. Switch to the current version.

GridCommands Class

Provides access to grid commands.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v19.1.dll

Declaration

public static class GridCommands
Public Module 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