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