GridSortInfoCollection.GroupByColumn(String, Int32, ColumnSortOrder) Method
In This Article
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 GroupByColumn(
string fieldName,
int index,
ColumnSortOrder sortOrder = ColumnSortOrder.Ascending
)
#Parameters
Name | Type | Description |
---|---|---|
field |
String | A String value that specifies the field name of the column by whose values data is grouped. |
index | Int32 | A zero-based integer value that specifies the grouping level. If negative, an exception is raised. |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
sort |
Column |
1 |
A Column |
#Remarks
To learn more, see Grouping in Code.
See Also