How do I add the ability to combine listview with treeview? I want to have a
list view but with some items in some columns to have the ability to act as
a tree instead of just a single item. (like, say, how outlook express does
it with its message headers)
Is it possible with ListView? I haven't been able to find anything that
mentions how to do it.
Thanks,
Jon
Claes Bergefall - 26 Mar 2008 11:11 GMT
Start with these:
http://www.google.co.uk/search?hl=en&q=treelistview
http://groups.google.co.uk/groups?hl=en&q=treelistview&um=1&ie=UTF-8&sa=N&tab=wg
/claes
> How do I add the ability to combine listview with treeview? I want to have
> a list view but with some items in some columns to have the ability to act
[quoted text clipped - 6 lines]
> Thanks,
> Jon
Jon Slaughter - 26 Mar 2008 17:34 GMT
> Start with these:
> http://www.google.co.uk/search?hl=en&q=treelistview
> http://groups.google.co.uk/groups?hl=en&q=treelistview&um=1&ie=UTF-8&sa=N&tab=wg
>
> /claes
I don't really want to use an external control. Are you saying that its
impossible to do it with the standard listview?
Claes Bergefall - 27 Mar 2008 11:04 GMT
>> Start with these:
>> http://www.google.co.uk/search?hl=en&q=treelistview
[quoted text clipped - 4 lines]
> I don't really want to use an external control. Are you saying that its
> impossible to do it with the standard listview?
How do you define an external control? The .NET listview control does not
provide this out of the box. You will need to inherit it and do a bunch of
P/Invoke stuff (start by looking at the LVITEM structure, specifically the
iIndent member). The links above should lead you to several implementations
that does exactly that (complete with source). Treat them as samples if
you'ld like...
/claes