Gets the summary value.
A Object specifying the total summary value.
Use one of the following approaches to get a value of the total or group summary.
Obtain Total Summary Values
Total summaries are specified by the GridColumnSummary objects added to the GridControl.TotalSummaries collection. Each total summary is a value calculated for the specified column and displayed under this column in the total summary panel. To obtain a total summary value, use the SummaryValue property of the corresponding GridColumnSummary object accessed from the GridControl.TotalSummaries collection.
Obtain Group Summary Values
Group summaries are specified by the GridColumnSummary objects added to the GridControl.GroupSummaries collection. A group summary is calculated for each data group in the grid, and each group summary value is displayed in the corresponding group row. To obtain a group summary value calculated for the specified group, follow the steps below.
- Call the GridControl.GetGroupInfo method to access an object implementing the IGroupInfo interface and containing information on the specified group.
- Use the IGroupInfo.Summaries property to get the GridControl.GroupSummaries collection copy whose elements (GridColumnSummary objects) are summaries calculated for the specified data group.
- Access the required summary object from the IGroupInfo.Summaries collection and use the SummaryValue property to get the group summary value calculated for the current group.