Treeview with folder nodes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I would like to create a treeview with folder nodes just like the one used
in "Explorer :: Folder options :: View :: Advanced settings". Basically, I
want it to look like this:

My first folder
|_| First item in first folder
|_| Second item in first folder
My second folder
|_| First item in second folder
|_| Second item in second folder
My third folder
|_| First item in third folder
|_| Second item in third folder
First sub-folder
|_| First item in third folder
|_| Second item in third folder


The requirement of sub-folders isn't that important but it would be a big
plus.




Regards,
Martin
 
Check out this treeview faq sample code. You would use
the System.IO DirectoryInfo and FileInfo classes to get
the folders and files recursively.

http://www.eggheadcafe.com/tutorials/aspnet/847ac120-3cdc-4249-8029-26c15de209d1/treeview-faq.aspx

--
Robbe Morris - 2004-2006 Microsoft MVP C#
I've mapped the database to .NET class properties and methods to
implement an multi-layered object oriented environment for your
data access layer. Thus, you should rarely ever have to type the words
SqlCommand, SqlDataAdapter, or SqlConnection again.
http://www.eggheadcafe.com/articles/adonet_source_code_generator.asp
 
Back
Top