Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TreeView from files in a directory...

Status
Not open for further replies.

cmsamcfe

Programmer
Dec 18, 2002
31
0
0
GB

I have a database table that holds file information (filename, filetype, directory etc) and on running my application I want to populate a treeview object to allow users to select files based on which directory they are in. (In other words, filenames are shown as leaves wheras the different directories make up the branches of the tree)

How do I create a treeview that reflects the contents of my database table? I tried creating a stream from the data source and reading the stream into the treeview with no joy.

Any help or advice on better approaches greatly appreciated :)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top