Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeListView.TreeDerivationMode Property

Gets or sets the tree derivation mode. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public TreeDerivationMode TreeDerivationMode { get; set; }

#Property Value

Type Description
TreeDerivationMode

A TreeDerivationMode enumeration value that specifies the tree derivation mode.

Available values:

Name Description
Selfreference

Builds a tree from a self-referential data structure. To learn more, see Bind to Self-Referential Data Structure.

ChildNodesSelector

You should manually write code to specify where a data object’s child items come from by creating a selector class. To learn more, see Bind to Hierarchical Data Structure.

HierarchicalDataTemplate

Builds a tree using Hierarchical Data Templates. To learn more, see Hierarchical Data Templates.

#Remarks

In data bound mode, the TreeListView can display information in a tree from either a self-referential (flat) or hierarchical data structure. For each type of a data structure, it provides the corresponding tree derivation mode(s), specified via the TreeDerivationMode property.

If the TreeDerivationMode property is set to TreeDerivationMode.HierarchicalDataTemplate, optimized mode is automatically disabled.

To learn more, see Binding to Hierarchical Data Overview.

The following code snippets (auto-collected from DevExpress Examples) contain references to the TreeDerivationMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also