Build Treeview from Database...

lidds

Well-known member
Joined
Oct 19, 2004
Messages
122
Programming Experience
Beginner
I am really stugling with this an was hoping that someone has done this in the past and can lend some guidance, I have had a look on Google but I only seem to find examples of one parent and one child.

Anyway back to the problem, I have a treeview on a form and I want to allow the user to create a tree structure of their choice. What I mean by that is no limit to parent and child combinations, so basically have the same functionality as in Window Explorer.

Now comes the problem, what I want to be able to do is store this tree view hierarchy in a database, so that when they add a new node to the treeview it is stored in the database at the correct level. Then if the user closes the form and re-opens it loads the treeview hierarchy from the database.

I would really apreshiate some guidance on database table stucture and how I can loop through and build the treeview

Thanks in advance

Simon
 
Saw this this other day: [ame=http://www.vbforums.com/showthread.php?t=570331][2.0+] Reading/Writing TreeView Node Structures - VBForums[/ame]
 
Back
Top