Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

Listview with column item's as tree's

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jon Slaughter - 26 Mar 2008 06:03 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.