View previous topic :: View next topic |
Author |
Message |
Silan Liu
Joined: 20 Oct 2011 Posts: 1
|
Posted: Thu Oct 20, 2011 10:34 pm Post subject: How do I bind recursively linked data |
|
|
Hi,
I want to display SQL execution plan using the tree control. I have a number of records which links to each other on a parent-child relationship. Each record has a "id" column and a "parent_id" column. You may have following scenarios:
record 1 has no parent.
record 2 is 1's child.
record 3 is 2's child.
record 4 is 3's child.
How do I bind this to the tree control?
I read that this tree control does not allow manually populating and has to use binding. How does the binding know this "parent_id - id" relationship? |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Fri Oct 21, 2011 2:26 am Post subject: |
|
|
Is your recursive data in a database that you can access via an ADO.NET DataSet? There is a sample project you can download from:
www.infralution.com/downloads/RecursiveDatabase.zip
that illustrates binding Virtual Tree to an ADO.NET database with recursive relations.
Searching the forums for "recursive" will also turn up quite a few other threads on this topic. _________________ Infralution Support |
|
Back to top |
|
|
|