A ListView/Treeview Control

This excellent code sample shows how to make a ListView control similar to those used in Outlook and Outlook Express. The ListView looks similar to the TreeView control in that items can be 'grouped' - note that items need to be added when a ListItem is 'expanded' and removed when contracted by the programmer.

Many thanks (again) to Brad Martinez for allowing the CodeGuru site to link to another of his excellent samples. See the full article at Brad's Site.

Download zipped project (8k)



Click here for a larger image.



Comments

  • Comment

    Posted by zarozaq on 05/16/2011 12:09am

    the source is good

    Reply
  • Mr.X

    Posted by zarozaq on 05/16/2011 12:08am

    good..

    Reply
  • Treeview Look Listview - Checkboxes

    Posted by Legacy on 08/10/2000 12:00am

    Originally posted by: Neil


    I have used the code for Brad's listview, and included some additional functionality but have not been able to include Checkboxes on the Listview.

    It appears that the SetItemStateEx method results in a checkbox being displayed, but in the location where the code expects to see the '+' or '-' sign.

    I would appreciate any advice on how one would indent the checkboxes further so that the '+' or '-' sign can still be seen.

    Cheers,
    Neil

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • The explosion in mobile devices and applications has generated a great deal of interest in APIs. Today's businesses are under increased pressure to make it easy to build apps, supply tools to help developers work more quickly, and deploy operational analytics so they can track users, developers, application performance, and more. Apigee Edge provides comprehensive API delivery tools and both operational and business-level analytics in an integrated platform. It is available as on-premise software or through …

  • Live Event Date: September 17, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Another day, another end-of-support deadline. You've heard enough about the hazards of not migrating to Windows Server 2008 or 2012. What you may not know is that there's plenty in it for you and your business, like increased automation and performance, time-saving technical features, and a lower total cost of ownership. Check out this upcoming eSeminar and join Rich Holmes, Pomeroy's practice director of virtualization, as he discusses the …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds