TreeList.GetPrintCustomSummaryValue Event
Permits manual calculations of summary values for the printed version of the Tree List control.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v18.2.dll
Declaration
[DXCategory("Printing")]
public event GetCustomSummaryValueEventHandler GetPrintCustomSummaryValue
Event Data
The GetPrintCustomSummaryValue event's data class is GetCustomSummaryValueEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Column | Obtains the Tree List column used by the summary calculations. |
CustomValue | Gets or sets a value to be displayed within a summary. |
IsSummaryFooter | Gets a value indicating whether the total or group summary value is to be calculated. |
Nodes | Gets the nodes collection for which to calculate a custom summary. |
Remarks
The Tree List control can be printed by means of the XtraPrinting Library. Please refer to the Print TreeList topic for information on how to do this.
The GetPrintCustomSummaryValue event can be used to override the settings applied by the TreeList.GetCustomSummaryValue event handler. The summary value calculated using the GetPrintCustomSummaryValue event is used in the printed version of the control. Both events mentioned have the same parameters and must be handled in a similar way. See the TreeList.GetCustomSummaryValue event description for details.
If it is needed to display different summary values in the Tree List and its printed version, set the event parameter’s GetCustomSummaryValueEventArgs.CustomValue property to different values when handling the TreeList.GetCustomSummaryValue and GetPrintCustomSummaryValue events.