Listview with column item's as tree's

J

Jon Slaughter

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
 
C

Claes Bergefall

Jon Slaughter said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top