Grouping And Aggregates

Name
OrderID
Quantity
Totals

The C1GridView supports aggregates calculation against one or more grouped columns (see: GroupArea sample).

It is possible to calculate aggregate values for each group of data rows. An aggregate can be calculate for any column with compatible data type if the column is preceded by a grouped column. C1GridView supports aggregate functions like Sum, Count, Min, Max and other.

The following column properties are used in this sample:

  • GroupInfo.Position - to group the ProductID column.
  • Aggregate - to specify aggregates for the ProductName, Quantity and Total columns.