Back to Devexpress

XRLabel.SummaryGetResult Event

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrlabel-83f19a87.md

latest3.4 KB
Original Source

XRLabel.SummaryGetResult Event

Occurs when a summary gets its final value.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
public event SummaryGetResultHandler SummaryGetResult
vb
Public Event SummaryGetResult As SummaryGetResultHandler

Event Data

The SummaryGetResult event's data class is SummaryGetResultEventArgs. The following properties provide information specific to this event:

PropertyDescription
CalculatedValuesReturns a collection of values calculated using the summary function.
HandledGets or sets a value indicating whether an event was handled. If it was handled, the custom summary value is assigned to the SummaryGetResultEventArgs.Result property.
ResultGets or sets the result of a custom summary calculation.

Remarks

The SummaryGetResult event occurs before a label is printed. The event handler method gets the accumulatedValues parameter which is an array of summary values accumulated from the last time the XRLabel.SummaryReset event was raised.

To calculate a custom summary, the XRSummary.Func property should be set to SummaryFunc.Custom.

The custom summary events occur in the following order:

Note

With Expressions Bindings , calculation of custom summaries is no longer available. You are encouraged to write a custom expression with operators, functions, and constants, as described in the following help topic: Expression Language. For additional examples refer to the following help section: Calculate Summaries.

See Also

Calculate Custom Summaries via Scripts

XRLabel Class

XRLabel Members

DevExpress.XtraReports.UI Namespace