TreeListView Class

A View that displays information in a tree hierarchical structure.

Namespace: DevExpress.Xpf.Grid

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


public class TreeListView :

The following members accept/return TreeListView objects:


The TreeListView can display information as a tree, a grid, or a combination of both - in either data bound or unbound mode.

After you created and customized a new instance of the TreeListView class, you should assign the instance to the GridControl.View property.


<dxg:GridControl AutoGenerateColumns="AddNew" 
                 ItemsSource="{Binding Customers}">
    <dxg:TreeListView Name="treeListView" AutoWidth="True"
                      KeyFieldName="ID" ParentFieldName="ParentID"

The TreeListView supports standard data-aware and presentation features such as data editing, sorting, filtering, summary calculation, built-in validation, unbound columns, runtime column customization and more.

The TreeListView has the following TreeList-specific features:

  • Hierarchical Data Presentation

    The information is displayed in a tree from hierarchical data structures.

  • Unbound Data Binding Mode

    You can create a tree in Xaml or code. Nodes can be represented by objects of different types. The only requirement is that these data objects should have common fields (columns).

  • Tree-Traversal API

    To simplify managing hierarchical data (without writing additional recursive code), the TreeListView ships with an API. You can sequentially visit nodes starting from a specified node down to the last node.


See Also