By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,041 Members | 1,046 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,041 IT Pros & Developers. It's quick & easy.

Loading Data from Access into a Treeview

P: n/a
Hello All,

I am having a problem loading nodes and child nodes into a treeview
from an access database.
My Db fields are as follows :


Everything works well when the child nodes are created after the parent
nodes. Ex :

ID NodeName ParentID
1 Node1 -1
2 Node2 1
3 Node3 2

My treeview enables the Drag and drop feature so when I move some nodes
around the ParentID changes. If the Parent ID is pointing to a node
that is not added yet to the treeview it will mess up.
ID NodeName ParentID
1 Node1 -1
2 Node2 3
3 Node3 1

I can't seem to figure out the best way to code this to be able to get
the childs in they're parent nodes no matter what order they are listed
in the database.

Can anyone help? Thanks!!

Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a

To use a treeview there has to be at least one parent child relation


I don't see the parent child relation in your description of your problem?

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.