Back to Devexpress

PagedAsyncSource.GetTotalSummaries Event

wpf-devexpress-dot-xpf-dot-data-dot-pagedasyncsource-8ef75f4b.md

latest4.6 KB
Original Source

PagedAsyncSource.GetTotalSummaries Event

Allows getting total summaries.

Namespace : DevExpress.Xpf.Data

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public event EventHandler<GetSummariesAsyncEventArgs> GetTotalSummaries
vb
Public Event GetTotalSummaries As EventHandler(Of GetSummariesAsyncEventArgs)

Event Data

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

PropertyDescription
FilterGets the GridControl ‘s filtering. Inherited from GetSummariesEventArgsBase.
ResultGets or sets the result of the get summaries operation.
SummariesGets the GridControl ‘s total summary items. Inherited from GetSummariesEventArgsBase.

Remarks

View Example: How to Bind to PagedAsyncSource

If you want to maintain a clean MVVM pattern and process summaries in a ViewModel, create a command and bind it to the PagedAsyncSource.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/PagedAsyncSource/MainWindow.xaml.cs#L22

csharp
source.FetchPage += OnFetchPage;
source.GetTotalSummaries += OnGetTotalSummaries;
grid.ItemsSource = source;

wpf-data-grid-implement-crud-operations/CS/CodeBehind/EFCore/PagedAsyncSource/MainWindow.xaml.cs#L22

csharp
source.FetchPage += OnFetchPage;
source.GetTotalSummaries += OnGetTotalSummaries;
grid.ItemsSource = source;

wpf-data-grid-bind-to-pagedasyncsource/CS/PagedAsyncSourceSample/MainWindow.xaml.cs#L35

csharp
source.GetTotalSummaries += (o, e) => {
    e.Result = GetTotalSummariesAsync(e);

how-to-bind-wpf-grid-to-data/VB/CodeBehind/EFCore/PagedAsyncSource/MainWindow.xaml.vb#L19

vb
AddHandler source.FetchPage, AddressOf OnFetchPage
AddHandler source.GetTotalSummaries, AddressOf OnGetTotalSummaries
grid.ItemsSource = source

wpf-data-grid-bind-to-pagedasyncsource/VB/PagedAsyncSourceSample/MainWindow.xaml.vb#L27

vb
End Sub
AddHandler source.GetTotalSummaries, Sub(o, e) e.Result = GetTotalSummariesAsync(e)
Me.grid.ItemsSource = source

See Also

PagedAsyncSource Class

PagedAsyncSource Members

DevExpress.Xpf.Data Namespace