Back to Devexpress

DataControlBase.TotalSummarySource Property

wpf-devexpress-dot-xpf-dot-grid-dot-datacontrolbase-2d5b1c88.md

latest1.9 KB
Original Source

DataControlBase.TotalSummarySource Property

Gets or sets the source from which the grid generates total summary items. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public IEnumerable TotalSummarySource { get; set; }
vb
Public Property TotalSummarySource As IEnumerable

Property Value

TypeDescription
IEnumerable

The source from which the grid generates total summary items.

|

Remarks

You can define total summaries in a ViewModel and display them in the GridControl. To do this, follow the steps below:

  1. Create a collection of total summaries in a ViewModel.

  2. Specify a data template that generates summaries:

  3. Assign the total summary collection to the TotalSummarySource property and the summary template to the TotalSummaryGeneratorTemplate property:

Refer to the following help topic for more information: How to: Bind the Grid to Total and Group Summaries.

See Also

DataControlBase Class

DataControlBase Members

DevExpress.Xpf.Grid Namespace