Back to Devexpress

InfiniteAsyncSource.GetTotalSummaries Event

wpf-devexpress-dot-xpf-dot-data-dot-infiniteasyncsource-e0ac49dd.md

latest5.1 KB
Original Source

InfiniteAsyncSource.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 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

csharp
source.FetchRows += OnFetchRows;
source.GetTotalSummaries += OnGetTotalSummaries;
grid.ItemsSource = source;

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

csharp
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

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

wpf-data-grid-bind-to-infiniteasyncsource/CS/InfiniteAsyncSourceSample/MainWindow.xaml.cs#L35

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

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

vb
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

vb
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

InfiniteAsyncSource Class

InfiniteAsyncSource Members

DevExpress.Xpf.Data Namespace