devexpress-wpf-tree-list
DevExpress WPF TreeList (TreeListControl)
The DevExpress WPF TreeList is a data-aware control for displaying and editing hierarchical data as a tree. The primary class is DevExpress.Xpf.Grid.TreeListControl, which uses DevExpress.Xpf.Grid.TreeListView as its View. TreeListControl supports three data binding strategies — self-referential (flat data with Key/Parent fields), hierarchical (nested child collections or templates), and unbound mode (programmatic TreeListNode tree). It shares the same feature surface as GridControl: sorting, filtering, summaries, editing, conditional formatting, drag-and-drop, and printing/export.
TreeListControl vs. TreeListView:
TreeListControlis a standalone control;TreeListViewis its View class. The sameTreeListViewclass can also act as a View of the regularGridControl(in which case the parent isGridControl, notTreeListControl). If your data is hierarchical and you need a tree-only experience, useTreeListControl. If your data is sometimes tabular and sometimes hierarchical, considerGridControlwith aTreeListView.
When to Use This Skill
Use this skill when you need to:
- Display org charts, file/folder trees, project hierarchies, BOM, or any parent-child data
- Bind to flat data with Key/Parent fields (employees with
ReportsTo, categories withParentId) - Bind to nested object collections (each item has a
Childrenproperty) - Build a tree programmatically without a data source (unbound mode) using
TreeListNode - Define columns explicitly with
TreeListColumnand configure in-place editors - Allow users to expand/collapse, select multiple nodes or cells, edit values, sort, filter, search
- Apply conditional formatting, summaries, drag-and-drop, or printing/export to a tree
- Migrate from standard WPF
TreeViewto a richer, data-aware tree