views:

145

answers:

1

I want to populate the treeview strucure in windows application using C# and I have a table structure in database:

table1 folder
 |
 -->folderid
 |
 -->foldername

table2 file
 |
 -->fileid
 |
 -->filename

table3 fillfolder
 |
 -->id
 |
 -->folderid
 |
 -->fileid

That file is always the child of the folder, but how I can populate the treeview which shows like this

root
--folder1
----->file1
----->file2
--folder2
-----folder3
----------file4
A: 

Why don't you try to read and study more about TreeView at this sites:

Also, read more about databases, take a look at Working with a Database in C#.

Don't ask for code, study and solve your problem ;)

Nathan Campos
shaily is asking for windows app and you are replying for web app.
Brij