A newer version of this page is available. Switch to the current version.

TreeListView.TreeDerivationMode Property

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

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v19.1.dll

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 Binding 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 Binding to Hierarchical Data Structure.

HierarchicalDataTemplate

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

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.

See Also