Skip to main content

GridControl.GroupBy(GridColumn, ColumnSortOrder, Int32) Method

Groups data by the values of the specified column with the specified sort order. If several columns are involved in grouping, the specified column will reside at the specified grouping level.

Namespace: DevExpress.Xpf.Grid

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

#Declaration

public void GroupBy(
    GridColumn column,
    ColumnSortOrder sortedOrder,
    int groupedIndex
)

#Parameters

Name Type Description
column GridColumn

A GridColumn object that represents the column by whose values data is grouped.

sortedOrder ColumnSortOrder

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

groupedIndex Int32

A zero-based integer value that specifies the grouping level. If negative, an exception is raised.

#Remarks

To learn more, see Grouping Overview.

See Also