Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do I bind recursively linked data

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
Silan Liu



Joined: 20 Oct 2011
Posts: 1

PostPosted: Thu Oct 20, 2011 10:34 pm    Post subject: How do I bind recursively linked data Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri Oct 21, 2011 2:26 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group