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.
WEBINAR: On-demand webcast
How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017 REGISTER >
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.