Back to Devexpress

GridControl.TotalSummary Property

wpf-devexpress-dot-xpf-dot-grid-dot-gridcontrol-c620e1cf.md

latest5.1 KB
Original Source

GridControl.TotalSummary Property

Allows you to access the collection of total summary items.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public GridSummaryItemCollection TotalSummary { get; }
vb
Public ReadOnly Property TotalSummary As GridSummaryItemCollection

Property Value

TypeDescription
GridSummaryItemCollection

The collection of total summary items.

|

Remarks

The total summary is a value of an aggregate function calculated over all data rows within a View. Total summaries are displayed in the Summary Panel and Fixed Summary Panel.

The GridControl stores its group summaries in the GridControl.GroupSummary collection.

Note

In Server Mode, you cannot calculate total summaries for unbound columns populated by events. Columns with the specified unbound expressions support total summaries.

Refer to the following help topics for more information: Total Summary and Edit Summaries.

The following code snippets (auto-collected from DevExpress Examples) contain references to the TotalSummary 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.

how-to-bind-wpf-grid-to-data/CS/CodeBehind/EFCore/LocalData/MainWindow.xaml#L16

xml
<dxg:GridColumn FieldName="LastName" IsSmart="True" />
<dxg:GridControl.TotalSummary>
    <dxg:GridSummaryItem SummaryType="Count" Alignment="Right" />

wpf-data-grid-implement-crud-operations/CS/CodeBehind/EFCore/LocalData/MainWindow.xaml#L37

xml
</dxg:GridControl.InputBindings>
<dxg:GridControl.TotalSummary>
    <dxg:GridSummaryItem SummaryType="Count" Alignment="Right" />

wpf-data-grid-extend-crud-operations/CS/DetailCollectionEditing/MainWindow.xaml#L32

xml
</dxg:GridControl.InputBindings>
<dxg:GridControl.TotalSummary>
    <dxg:GridSummaryItem SummaryType="Count" Alignment="Right" />

wpf-data-grid-process-frequent-data-updates/CS/ChunkAndOptSummariesExample/MainWindow.xaml#L17

xml
<dxg:GridControl Name="grid" AutoGenerateColumns="None" AllowLiveDataShaping="True" OptimizeSummaryCalculation="True" ItemsSource="{Binding Devices}">
    <dxg:GridControl.TotalSummary>
        <dxg:GridSummaryItem SummaryType="Count" FieldName="Name" DisplayFormat="Total count: {0:N0}"/>

wpf-data-grid-summarize-empty-cells/CS/CustomSummary_EmptyCells_CodeBehind/MainWindow.xaml#L21

xml
</dxg:GridControl.View>
<dxg:GridControl.TotalSummary>
    <dxg:GridSummaryItem DisplayFormat="Total empty cells count: {0}"

See Also

GroupSummary

GridControl Class

GridControl Members

DevExpress.Xpf.Grid Namespace