Enables you to specify which summaries should be calculated and displayed.
public event CustomSummaryExistEventHandler CustomSummaryExists
Public Event CustomSummaryExists As CustomSummaryExistEventHandler
The CustomSummaryExists event's data class is CustomSummaryExistEventArgs. The following properties provide information specific to this event:
|Exists||Gets or sets whether the summary value should be calculated and displayed.|
|GroupLevel||Gets the nesting level of the group whose summary value is being calculated.|
|GroupRowHandle||Gets a value identifying the group row whose summary value is about to be calculated.|
|IsGroupSummary||Gets whether a group summary value is about to be calculated.|
|IsTotalSummary||Gets whether a total summary value is about to be calculated.|
|Item||Gets a summary item whose value is about to be calculated.|
The event is raised before a particular summary value is calculated, allowing cancellation of the calculation. To cancel a summary value calculation, set the event parameter's CustomSummaryExistEventArgs.Exists parameter to false.
In this case, the CustomSummaryExistEventArgs.IsTotalSummary parameter returns true. The processed summary item is returned by the CustomSummaryExistEventArgs.Item property. If required, use the summary item's properties to identify the column where it is displayed.
In this case, the CustomSummaryExistEventArgs.IsGroupSummary parameter returns true. The CustomSummaryExistEventArgs.GroupRowHandle property identifies the group for which the summary value is about to be calculated. The processed group summary item is returned by the CustomSummaryExistEventArgs.Item property.