RE: List-view groups
My ListView class has a helper function to create an LVITEM (ListView.Helpers.LVITEM). This function is used when you add or change items in the list view.
My guess is that you'll need to add some code to that function to add support for groups. You'll have to add a parameter to the LVITEM function so you can pass in the wanted group ID. When this parameter is set, you need to write the value for iGroupId to the structure and add LVIF_GROUPID and LVIF_COLUMNS to the Mask. Of course, you'll also need to add and pass the group parameter to the functions using LVITEM (e.g. InsertItem).
I don't know how sorting and grouping would work together though. I'd recommend you try to get grouping to work without the ListView class and if that works, you could try to combine it with the ListView class.
|