TreeGrid.Wpf
1.0.0
dotnet add package TreeGrid.Wpf --version 1.0.0
NuGet\Install-Package TreeGrid.Wpf -Version 1.0.0
<PackageReference Include="TreeGrid.Wpf" Version="1.0.0" />
<PackageVersion Include="TreeGrid.Wpf" Version="1.0.0" />
<PackageReference Include="TreeGrid.Wpf" />
paket add TreeGrid.Wpf --version 1.0.0
#r "nuget: TreeGrid.Wpf, 1.0.0"
#:package TreeGrid.Wpf@1.0.0
#addin nuget:?package=TreeGrid.Wpf&version=1.0.0
#tool nuget:?package=TreeGrid.Wpf&version=1.0.0
TreeGrid.Wpf
A multi-column tree grid for WPF on .NET 8. Hierarchical data binding, row and column virtualization, sorting, Excel-style filtering, editing with validation, frozen panes, stacked headers, grouping, footers, drag-and-drop, clipboard interop and CSV export.
The library has no external dependencies. For Excel and PDF export, add the optional
TreeGrid.Wpf.Export package.
Install
dotnet add package TreeGrid.Wpf
Quick start
Add these XML namespaces to your window or user control:
xmlns:tg="clr-namespace:TreeGrid.Wpf;assembly=TreeGrid.Wpf"
xmlns:cols="clr-namespace:TreeGrid.Wpf.Columns;assembly=TreeGrid.Wpf"
Declare the grid and point ChildPropertyName at the collection that holds each item's children:
<tg:TreeGridControl ItemsSource="{Binding Staff}"
ChildPropertyName="Children"
AllowSorting="True"
AllowFiltering="True"
FrozenColumnCount="1">
<tg:TreeGridControl.Columns>
<cols:TreeGridTextColumn MappingName="FirstName" HeaderText="First Name" Width="220" />
<cols:TreeGridNumericColumn MappingName="Salary" HeaderText="Salary" Width="110" />
<cols:TreeGridProgressBarColumn MappingName="Completion" HeaderText="Progress" />
</tg:TreeGridControl.Columns>
</tg:TreeGridControl>
public class Employee
{
public string FirstName { get; set; }
public double Salary { get; set; }
public ObservableCollection<Employee> Children { get; set; } = new();
}
CSV export is built in:
using TreeGrid.Wpf.Export; // options types ship in the core package
grid.ExportToCsv("staff.csv", new GridExportOptions { RowScope = ExportRowScope.VisibleRows });
Documentation
The full guide covers columns, selection, editing and validation, theming, the keyboard reference and the events reference. It is in the GitHub repository, which also has a runnable demo app.
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
-
net8.0-windows7.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on TreeGrid.Wpf:
| Package | Downloads |
|---|---|
|
TreeGrid.Wpf.Export
Excel (.xlsx) and PDF exporters for the TreeGrid.Wpf control, built on ClosedXML and QuestPDF. Exports keep the hierarchy as indentation, a level column, or native Excel outline grouping. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 124 | 9/22/2026 |