GridControl.CustomSummaryExists Event
Enables you to specify which summaries should be calculated and displayed.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
public event CustomSummaryExistEventHandler CustomSummaryExists
#Event Data
The CustomSummaryExists event's data class is CustomSummaryExistEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Exists | Gets or sets whether the summary value should be calculated and displayed. |
Group |
Gets the nesting level of the group whose summary value is being calculated. |
Group |
Gets a value identifying the group row whose summary value is about to be calculated. |
Is |
Gets whether a group summary value is about to be calculated. |
Is |
Gets whether a total summary value is about to be calculated. |
Item | Gets a summary item whose value is about to be calculated. |
#Remarks
This event occurs before the GridControl calculates its summary and allows you to cancel the calculation. To cancel a summary value calculation, set the event parameter’s CustomSummaryExistEventArgs.Exists property 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.