I need some advice and guidance on how I should tackle this problem.
I have a treeview 'treeview1' that I want to list all the files that are stored within my database table 'docListTbl'. The problem is that these files might be stored within different treenodes, and I'm not sure how to build the treeview dynamically from my database table and to ensure that the files are displayed under the correct node.
What I will do is give you and example, but I am unsure how to acheive this, can anyone help???
If I have the following table stucture:
parent | child | file name
-----------------------
text files | new | filename
picture files | old | filename
text files | new1 | filename1
text files | new | filename2
so what I want it to give me is the following:
If anyone could help give me an example code in vb.net that would be great??
Thanks
Simon
I have a treeview 'treeview1' that I want to list all the files that are stored within my database table 'docListTbl'. The problem is that these files might be stored within different treenodes, and I'm not sure how to build the treeview dynamically from my database table and to ensure that the files are displayed under the correct node.
What I will do is give you and example, but I am unsure how to acheive this, can anyone help???
If I have the following table stucture:
parent | child | file name
-----------------------
text files | new | filename
picture files | old | filename
text files | new1 | filename1
text files | new | filename2
so what I want it to give me is the following:
Code:
-- text files --
| |-- new --
| | |-- filename
| | |-- filename2
| |
| |-- new1--
| |-- filename1
-- picture files --
|-- old --
|-- filename
If anyone could help give me an example code in vb.net that would be great??
Thanks
Simon