how to add a list of file paths to a tree as quickly as possible?
-
I have a huge list of file paths and i have to insert them into a tree (TreeView as user interface)! Example of a list: C:\Folder\data.011 C:\New Folder\settings.ini C:\Folder\task.dat C:\My Documents\manual.pdf C:\Windows\wallpaper.jpg ..... ..... ..... 20 000 Files and Folders Which is the fastest way to visualize the list in a TreeView? Any thoughts are appreciated!
modified on Monday, September 8, 2008 7:29 AM
-
I have a huge list of file paths and i have to insert them into a tree (TreeView as user interface)! Example of a list: C:\Folder\data.011 C:\New Folder\settings.ini C:\Folder\task.dat C:\My Documents\manual.pdf C:\Windows\wallpaper.jpg ..... ..... ..... 20 000 Files and Folders Which is the fastest way to visualize the list in a TreeView? Any thoughts are appreciated!
modified on Monday, September 8, 2008 7:29 AM
One solution would be to not show the updated tree until it has been fully populated. Another (faster) approach is to only show those nodes that are actually visible. In other words, don't show a node's contents until it has been expanded.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch