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