Back to Devexpress

TreeListView.NodeSummary Property

wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-5939246b.md

latest3.3 KB
Original Source

TreeListView.NodeSummary Property

Provides access to node summary items.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public TreeListNodeSummaryItemCollection NodeSummary { get; }
vb
Public ReadOnly Property NodeSummary As TreeListNodeSummaryItemCollection

Property Value

TypeDescription
TreeListNodeSummaryItemCollection

A TreeListNodeSummaryItemCollection object that represents the collection of node summary items.

|

Remarks

Node summaries are displayed within node footers. Summary items are represented by the TreeListSummaryItem objects and are stored within the NodeSummary collection. This collection provides methods and properties that allow you to add, remove and access summary items.

The collection of total summaries can be accessed via the GridControl.TotalSummary (or DevExpress.Xpf.Grid.TreeListControl.TotalSummary) property.

To learn how to customize node summaries at runtime, refer to Customizing Summaries.

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

wpf-tree-list-calculate-custom-node-summaries/CS/CustomNodeSummaries_CodeBehind/MainWindow.xaml#L17

xml
CustomSummary="OnCustomSummary">
<dxg:TreeListView.NodeSummary>
    <dxg:TreeListSummaryItem FieldName="Statistics" SummaryType="Custom"/>

wpf-tree-list-display-node-summaries/CS/TreeList_DataBinding/MainWindow.xaml#L24

xml
<dxg:TreeListView.NodeSummary>
    <dxg:TreeListSummaryItem FieldName="Statistics" SummaryType="Average"/>

See Also

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace