Click here to Skip to main content
15,913,587 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good day, I am experimenting to develop an archiving system that can upload word files, pdf, excel files, images, etc. to a database server. Those files can be upload by different users from different departments, i want to display the department list on a tree view component in vb.net 2010, how can i populate the tree view with the departments available from my database? and also if i expand the tree view, i want to display the names of the users under the expanded department. I don't know if that is possible in tree view because i only use it to display folders from my local drive. Is there anyone here knows how to do it? Thanks in advance guys, any comment or suggestion is appreciated.
Posted
Comments
Mantu Singh 17-Jun-12 6:41am    
using treeview might not be good choice as you need to add child nodes dynamically leaving the evnt handling to be followed use this link may be this helps
http://www.codeproject.com/Answers/271528/Treeview-every-next-number-should-be-child-of-Prev

1 solution

Have a look at this: Populating a TreeView Control from the Database[^] it's in C#, but it covers doing exactly what you want. Translating it to VB isn't difficult - there are online translators which do most of it for you: http://www.developerfusion.com/tools/convert/csharp-to-vb/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900