The requested page is not available for the requested platform. You are viewing the content for Default platform.

GridControl.GroupBy(GridColumnBase, ColumnSortOrder) Method

Groups data by the values of the specified column with the specified sort order.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v19.1.dll


public void GroupBy(
    GridColumnBase column,
    ColumnSortOrder sortedOrder
Public Sub GroupBy(
    column As GridColumnBase,
    sortedOrder As ColumnSortOrder


Name Type Description
column GridColumnBase

A GridColumnBase descendant that specifies the column.

sortedOrder ColumnSortOrder

A ColumnSortOrder enumeration value that specifies the column's sort order.


Data rows are always sorted against the grouping columns. If data is grouped against a column which isn't sorted, the grid automatically applies sorting in ascending order to this column.

To learn more, see Grouping Overview.

See Also