You are viewing help content for pre-release software. This document and the features it describes are subject to change. Switch to the current version.

TreeListView Class

A View that displays information in a tree hierarchical structure.

Namespace: DevExpress.Xpf.Grid

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

Declaration

public class TreeListView :
    GridDataViewBase,
    ITableView,
    IFormatsOwner
Public Class TreeListView
    Inherits GridDataViewBase
    Implements ITableView,
               IFormatsOwner

Related API Members

The following members accept/return TreeListView objects:

Remarks

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.

TreeListView

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

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.

Implements

See Also