Getting Started with TreeDataGrid

TreeDataGrid combines tree navigation and tabular columns in a single control. In the v12-style API there are two supported ways to configure it:

  • ItemsSource plus declarative TreeDataGrid*Column elements in XAML
  • Source plus a FlatTreeDataGridSource<TModel> or HierarchicalTreeDataGridSource<TModel> built in code

Choose an Approach

  • Use ItemsSource when you want the control definition to stay in XAML and you do not need advanced source-only features.
  • Use Source when you need filtering, programmatic expand/collapse, or more involved runtime composition.

Useful Properties

  • ItemsSource: binds a collection for declarative XAML columns
  • Source: binds a FlatTreeDataGridSource<TModel> or HierarchicalTreeDataGridSource<TModel>
  • SelectionMode: chooses row or cell selection, with optional multiple selection
  • CanUserResizeColumns: controls column resizing, default false
  • CanUserSortColumns: controls header-click sorting, default true
  1. Installation
  2. Quickstart: Flat
  3. Quickstart: Hierarchical
  4. Breaking Changes v12
  5. Column Types

Next