Back to Devexpress

Tree List

wpf-9759-controls-and-libraries-tree-list.md

latest8.6 KB
Original Source

Tree List

  • Aug 16, 2022
  • 3 minutes to read

The WPF Tree List (TreeListControl) is a data-aware control designed to display and edit hierarchical data. The TreeListControl allows users to manage data (sort, filter, and so on).

Note

The Tree List is available as a stand-alone control or as one of the Data Grid Views.

Get Started

Bind to Data

Refer to the following topic for more information: Bind to Data.

Display Hierarchical Data

The TreeListControl can display data in a tree from a self-referential (flat) or hierarchical data structure.

Self-Referential DataBuild a tree if objects in a data source contain Key and Parent fields.Child Nodes PathSet a path to the children field. Use this technique only when child and parent fields have the same object type.Child Nodes SelectorCreate a selector that returns node children. You can use this technique for different object types.Asynchronous Child Nodes SelectorFetch child nodes in a background thread to keep the TreeListView responsive to user actions.Hierarchical Data TemplatesCreate a template for different data types.Unbound ModeCreate a tree without a data source.

Refer to the following help topic for more information: Display Hierarchical Data.

Edit Data

The TreeListControl allows you to:

In-place Editing

New Item Row

Sort Data

The TreeListControl allows you to Sort Data against one or multiple columns.

Filter and Search Data

The TreeListControl supports the following ways to filter and search data:

Automatic Filter Row & Filter Panel

Column Drop-Down Filter

Search Panel

Display Summaries

The TreeListControl allows you to display Data Summaries for individual columns or children of each node. The control ships with a number of built-in functions, such as Sum, Maximum Value, Record Count, and others. You can also implement a custom aggregation function.

Select Data

The TreeListControl allows you to select nodes, cells, or their ranges.

Drag-and-Drop

The TreeListControl supports native drag-and-drop that allows users to:

Conditional Formatting

The TreeListControl supports Conditional Formatting. You can highlight critical information, identify trends and exceptions, and compare data.

Customize Appearance

The TreeListControl allows you to change the data layout, appearance, and visual presentation of elements (for example, cells, nodes, summaries, etc.).

The TreeListControl allows you to print data and export it in various formats - PDF, RTF, XLS, etc.

Design-Time

Extended design-time support allows you to configure the TreeListControl.

Useful Resources

See Also

WPF Tree List