For a project I am currently working on I need the collapse/expand functionality of the TreeView but with columns (like the listview).
Is there any solutions to this or do I need an entirely new control?
Printable View
For a project I am currently working on I need the collapse/expand functionality of the TreeView but with columns (like the listview).
Is there any solutions to this or do I need an entirely new control?
It is possible to use listview for that, but the code is not so simple.
See Brad Martinez's sample , and look for LVItemTree: How to create a hierarchical ListView
Thanks. Looks just what I need.
One more question. It would really be great if I could have icons in a couple of columns. Does this require a lot of changes to this code?
Do you want icons IN the columns? Not just in front of the columns?
I wouldn't know how to do that. I guess it requires the listview to be custom drawn, but I am not sure about that.
Yes, the control I need would have to look something like this.
Column(1) : Icon and text in treeview style (as in the LVItemTree)
Column(2) : Icon
Column(3) : Icon
Column(4) : Text
Column(5) : Text
...
The vbAccelerator S-Grid Control can have icons in the columns. The LVItemTree has the treeview ability in the rows. I guess the problem is now finding the part with regard to the icons in the S-Grid and translating it to the LVItemTree. Anybody who can help me on this issue?