Click here to Skip to main content
15,893,644 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm non-native speaker of English, so no flames about my bad English please.

I'm using visual studio 11 and making a windows form application such as Windows Media Player. Now, I can add items to a listview to store files.
I want to make a treeview such as the following.

eg.)
[artist1] - [album1] - [music1-1]
______________________ [music1-2]
__________- [album2] - [music2-1]
______________________ [music2-2]
[artist2] - [album3] - [music3-1]
______________________ [music3-2]
__________- [album4] - [music4-1]
______________________ [music4-2]


In the listview, items and subitems are displayed such as the following..
eg.)
[music1-1][artist1][album1]
[music1-2][artist1][album1]
[music2-1][artist1][album2]
[music2-2][artist1][album2]
[music3-1][artist2][album3]
[music3-2][artist2][album3]
[music4-1][artist2][album4]
[music4-2][artist2][album4]


Thanks in advance.
Posted

1 solution

You could find these interesting controls:
- TreeView with Columns[^]
- A Much Easier to Use ListView[^]
 
Share this answer
 
Comments
MillionX30 6-Jan-12 1:17am    
Thank you for telling me a good link!
Wendelius 6-Jan-12 6:11am    
You're welcome :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900