TableQuery.Grouping Property

Provides access to grouping settings used to group the result set of the current TableQuery by the specified column(s) into a set of summary rows.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v21.1.dll


public GroupingInfoList Grouping { get; }

Property Value

Type Description

A GroupingInfoList object providing access to the collection of GroupingInfo objects that specify grouping settings.


Grouping is used in conjunction with the aggregate functions to group the result set by one or more columns. Therefore, you should apply grouping/aggregation either to all columns or to none of them.

To group the result set by the specified column, create the GroupingInfo object, specify its settings and add this object to the Grouping collection.

To aggregate values of the specified column, use the ColumnInfo.Aggregation property of the required column. Note that aggregated columns should have an alias, which can be specified using the ColumnInfo.Alias property.


To access columns selected in the current TableQuery, do the following.

See Also