wpf-devexpress-dot-xpf-dot-data-dot-infiniteasyncsource-e0ac49dd.md
Allows getting total summaries.
Namespace : DevExpress.Xpf.Data
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public event EventHandler<GetSummariesAsyncEventArgs> GetTotalSummaries
Public Event GetTotalSummaries As EventHandler(Of GetSummariesAsyncEventArgs)
The GetTotalSummaries event's data class is GetSummariesAsyncEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Filter | Gets the GridControl ‘s filtering. Inherited from GetSummariesEventArgsBase. |
| Result | Gets or sets the result of the get summaries operation. |
| Summaries | Gets the GridControl ‘s total summary items. Inherited from GetSummariesEventArgsBase. |
View Example: How to Bind to InfiniteAsyncSource
If you want to maintain a clean MVVM pattern and process summaries in a ViewModel, create a command and bind it to the InfiniteAsyncSource.GetTotalSummariesCommand property.
The following code snippets (auto-collected from DevExpress Examples) contain references to the GetTotalSummaries 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.
how-to-bind-wpf-grid-to-data/CS/CodeBehind/EFCore/InfiniteAsyncSource/MainWindow.xaml.cs#L21
source.FetchRows += OnFetchRows;
source.GetTotalSummaries += OnGetTotalSummaries;
grid.ItemsSource = source;
source.FetchRows += OnFetchRows;
source.GetTotalSummaries += OnGetTotalSummaries;
grid.ItemsSource = source;
wpf-data-grid-use-virtual-sources-to-bind-to-in-memory-data/CS/MainWindow.xaml.cs#L33
source.GetTotalSummaries += (o, e) => {
e.Result = GetTotalSummaries(e, getSourceTask);
wpf-data-grid-bind-to-infiniteasyncsource/CS/InfiniteAsyncSourceSample/MainWindow.xaml.cs#L35
source.GetTotalSummaries += (o, e) => {
e.Result = GetTotalSummariesAsync(e);
how-to-bind-wpf-grid-to-data/VB/CodeBehind/EFCore/InfiniteAsyncSource/MainWindow.xaml.vb#L18
AddHandler source.FetchRows, AddressOf OnFetchRows
AddHandler source.GetTotalSummaries, AddressOf OnGetTotalSummaries
grid.ItemsSource = source
wpf-data-grid-use-virtual-sources-to-bind-to-in-memory-data/VB/MainWindow.xaml.vb#L21
AddHandler source.FetchRows, Sub(o, e) e.Result = FetchRows(e, getSourceTask)
AddHandler source.GetTotalSummaries, Sub(o, e) e.Result = GetTotalSummaries(e, getSourceTask)
AddHandler source.GetUniqueValues, Sub(o, e)
See Also