This example demonstrates how to use GroupByExpressions in RadGridView to:
- Create group-by expressions, testing expressions syntax:
fieldname[ alias]|aggregate(fieldname)[ alias][, ...]
Group By fieldname[ sort][, ...]
Where:
fieldname: name of any
field from the DataSource
alias: alias string.
This cannot contain blanks or other reserved symbols like ',', '.' etc.
aggregate: any of - min,
max, sum, count, last, first etc (the same as in GridAggregateFunction
enumeration)
sort: acs or desc - the
sort order of the grouped items
Example: Country, City,
count(Country) Items, ContactName Group By Country, City desc
- Display additional information in each group header - like aggregate fields
- Dynamically add a "SubTotal" to each group, handling grid's grouping events