TreeGrid.Wpf 1.0.0

dotnet add package TreeGrid.Wpf --version 1.0.0
                    
NuGet\Install-Package TreeGrid.Wpf -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TreeGrid.Wpf" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TreeGrid.Wpf" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="TreeGrid.Wpf" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TreeGrid.Wpf --version 1.0.0
                    
#r "nuget: TreeGrid.Wpf, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TreeGrid.Wpf@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TreeGrid.Wpf&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=TreeGrid.Wpf&version=1.0.0
                    
Install as a Cake Tool

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 Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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