Skip to main content
A newer version of this page is available. .

TreeListView.CustomSummary Event

Enables you to calculate summary values manually.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v18.2.dll

Declaration

public event TreeListCustomSummaryEventHandler CustomSummary

Event Data

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

Property Description
FieldValue Gets the processed field value.
IsNodeSummary Gets whether the processed row values are used to calculate a node summary.
IsTotalSummary Gets whether the processed row values are used to calculate a total summary.
IsTotalValueReady Gets or sets whether the Calculation stage of the custom summary calculation process should be skipped.
Node Gets the processed node.
SummaryItem Gets a summary item whose value is being calculated.
SummaryProcess Gets a value indicating the calculation stage.
TotalValue Gets or sets the total summary value.

Remarks

Total summaries provides five predefined aggregate functions (COUNT, MAX, MIN, SUM and AVG). If you want to calculate summaries using custom rules, handle the CustomSummary event. This event enables you to implement custom aggregate functions or calculate summary values, using a custom algorithm.

To learn more, see Custom Summary.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CustomSummary event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also