T
tiger79
Hi,
I've got a sql databse file with some data in it :
ID P_ID Description
1 0 Parent1
2 0 Parent2
3 0 Parent3
4 1 Child1Parent1
5 2 Child1Parent2
6 3 Child1Parent3
Now, i'd like to place all this in a TreeView. Fisrt i'd like to show only
the first level (so that would be parents 1 t 3). When the user clicks on
one of the three nodes i'd like to expand the treeView so that the childs of
the selected node are shown. I managed to get the three parents on screen,
but I cant seems to manage to fill the parents node with its childs during
running time. I think my problem is that I cant find the right commands so
that i can select the appropriate parent and place some chiulds under it.
Any one have any idea how to solve a problem like this, os has some
experience in it ? I can supply my source, cause posting it would be quite
big (becasue of aal the databse reading and stuff)...
Thanx...
I've got a sql databse file with some data in it :
ID P_ID Description
1 0 Parent1
2 0 Parent2
3 0 Parent3
4 1 Child1Parent1
5 2 Child1Parent2
6 3 Child1Parent3
Now, i'd like to place all this in a TreeView. Fisrt i'd like to show only
the first level (so that would be parents 1 t 3). When the user clicks on
one of the three nodes i'd like to expand the treeView so that the childs of
the selected node are shown. I managed to get the three parents on screen,
but I cant seems to manage to fill the parents node with its childs during
running time. I think my problem is that I cant find the right commands so
that i can select the appropriate parent and place some chiulds under it.
Any one have any idea how to solve a problem like this, os has some
experience in it ? I can supply my source, cause posting it would be quite
big (becasue of aal the databse reading and stuff)...
Thanx...