corelibraries-devexpress-dot-data-dot-customsummaryeventargs-2d0c5250.md
Gets or sets the total summary value.
Namespace : DevExpress.Data
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
public object TotalValue { get; set; }
Public Property TotalValue As Object
| Type | Description |
|---|---|
| Object |
An object representing the total summary value.
|
The TotalValue property represents the total summary value that accumulates the custom calculated value. Note that this property should be initialized before the summary calculation process starts. To identify the status of the custom summary calculation, use the CustomSummaryEventArgs.SummaryProcess property. When performing calculations, you need to refresh the TotalValue property for it to be updated with the new values.
You can also modify the TotalValue property’s value when finalizing the calculation. In this case, the CustomSummaryEventArgs.SummaryProcess property returns the CustomSummaryProcess.Finalize value.
The following code snippets (auto-collected from DevExpress Examples) contain references to the TotalValue property.
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.
wpf-data-grid-summarize-empty-cells/CS/CustomSummary_EmptyCells_CodeBehind/MainWindow.xaml.cs#L37
if(e.SummaryProcess == CustomSummaryProcess.Start) {
e.TotalValue = 0;
}
winforms-grid-customize-footer-menu-calculate-custom-totals/CS/Form1.cs#L85
if (e.SummaryProcess == DevExpress.Data.CustomSummaryProcess.Finalize)
e.TotalValue = validRowCount;
}
wpf-data-grid-summarize-empty-cells/VB/CustomSummary_EmptyCells_CodeBehind/MainWindow.xaml.vb#L32
If e.SummaryProcess = CustomSummaryProcess.Start Then
e.TotalValue = 0
End If
winforms-grid-customize-footer-menu-calculate-custom-totals/VB/Form1.vb#L73
If e.SummaryProcess = DevExpress.Data.CustomSummaryProcess.Finalize Then e.TotalValue = validRowCount
End If
See Also