Creating Summaries
ExpressQuantumGrid supports three summary types. It can evaluate: footer summaries, group summaries and summary groups. Footer summaries are calculated over all the records in a grid View. Group summaries are calculated over groups of records when data in a View is grouped by grid items (columns in tabular Views and data groups in Chart Views). A summary group is a set of group summaries that are calculated when grouping by particular columns.
Summaries in a grid View are calculated by a data controller. The DataController.Summary property of the TcxDataSummary class gives you the ability to
specify footer summaries via FooterSummaryItems;
set group summaries via DefaultGroupSummaryItems;
manage summary groups via SummaryGroups;
determine whether to calculate summaries against all or just selected records and ignore null values (the Options property);
get and set summary results;
etc.
TcxDataSummaryItem is the base element of all types of summary. It references the column by which to calculate the summary, a function (Sum, Minimum, Maximum, Count, Average), the format of the output string and the position at which to display the result.
For further information about creating specific summaries, refer to the following topics: