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

GridControl.GroupBy(GridColumnBase, Int32) Method

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

Namespace: DevExpress.UI.Xaml.Grid

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

Declaration

public void GroupBy(
    GridColumnBase column,
    int groupedIndex
)
Public Sub GroupBy(
    column As GridColumnBase,
    groupedIndex As Integer
)

Parameters

Name Type Description
column GridColumnBase

A GridColumnBase descendant that specifies the column.

groupedIndex Int32

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

Remarks

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