Skip to content

Create a self-referential data structure and display it in the TreeListView.

License

Notifications You must be signed in to change notification settings

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 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

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)