This sample shows how to make a ListView with TreeView-like appearance similar to those used in Outlook and Outlook express. (Originally posted November 16, 1999.)
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.