wpf-devexpress-dot-xpf-dot-grid-e3b45b3e.md
Represents a summary item.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public class GridSummaryItem :
SummaryItemBase,
IDetailElement<SummaryItemBase>,
IGroupFooterSummaryItem
Public Class GridSummaryItem
Inherits SummaryItemBase
Implements IDetailElement(Of SummaryItemBase),
IGroupFooterSummaryItem
The following members return GridSummaryItem objects:
The DXGrid allows you to display concise information about groups of rows or individual data columns. For example, you can display the number of records, or maximum value, etc. This is called a summary.
Two summary types are supported: Total Summary and Group Summary. The grid stores its total summary items within the GridControl.TotalSummary collection. Group summary items are stored within the GridControl.GroupSummary collection. Individual summary items are represented by the GridSummaryItem class.
To learn more, see Data Summaries.
The following code snippets (auto-collected from DevExpress Examples) contain references to the GridSummaryItem class.
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.
wpf-data-grid-process-frequent-data-updates/CS/ChunkAndOptSummariesExample/MainWindow.xaml#L18
<dxg:GridControl.TotalSummary>
<dxg:GridSummaryItem SummaryType="Count" FieldName="Name" DisplayFormat="Total count: {0:N0}"/>
</dxg:GridControl.TotalSummary>
how-to-bind-wpf-grid-to-data/CS/CodeBehind/EFCore/LocalData/MainWindow.xaml#L17
<dxg:GridControl.TotalSummary>
<dxg:GridSummaryItem SummaryType="Count" Alignment="Right" />
</dxg:GridControl.TotalSummary>
wpf-data-grid-implement-crud-operations/CS/CodeBehind/EFCore/LocalData/MainWindow.xaml#L38
<dxg:GridControl.TotalSummary>
<dxg:GridSummaryItem SummaryType="Count" Alignment="Right" />
</dxg:GridControl.TotalSummary>
wpf-data-grid-display-group-summaries/CS/DisplayGroupSummaries_CodeBehind/MainWindow.xaml#L19
<dxg:GridControl.GroupSummary>
<dxg:GridSummaryItem FieldName="Age" SummaryType="Min"/>
<dxg:GridSummaryItem FieldName="Age" SummaryType="Max"/>
wpf-data-grid-summarize-empty-cells/CS/CustomSummary_EmptyCells_CodeBehind/MainWindow.xaml#L22
<dxg:GridControl.TotalSummary>
<dxg:GridSummaryItem DisplayFormat="Total empty cells count: {0}"
FieldName="Number"
Object DispatcherObject DependencyObject SummaryItemBase GridSummaryItem
See Also