Skip to content

DevExpress-Examples/wpf-treelist-bind-to-self-referential-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF Tree List - Bind to Self-Referential Data Structure

This example shows how to create a self-referential data structure and display it in the TreeListView.

image

To display this tree structure, your data source should include the following fields of the same data type:

  • Key Field - This field should contain unique values used to identify nodes. Assign its name to the TreeListView.KeyFieldName property.
  • Parent Field - This field should contain values that indicate parent nodes. Assign its name to the TreeListView.ParentFieldName property.

Set the TreeListView.TreeDerivationMode property to Selfreference to enable the self-referential mode.

Files to Review

Documentation

More Examples