softtouch 9 Posted March 17 I have a listview with groups and items. User can drag/drop items between groups. But when they move the last item of a group to another group, that group become invisible, so they cant move items back to that group. Is there any way to keep groups visible at all time, even they have no items assigned to them? Share this post Link to post
Remy Lebeau 1436 Posted March 17 Unfortunately no. Empty groups are not displayed, that is simply how Microsoft implemented it. So, the only option would be to add a blank item to the group just to keep it visible, and then remove that item later when it is no longer needed. 1 Share this post Link to post
softtouch 9 Posted March 17 55 minutes ago, Remy Lebeau said: Unfortunately no. Empty groups are not displayed, that is simply how Microsoft implemented it. So, the only option would be to add a blank item to the group just to keep it visible, and then remove that item later when it is no longer needed. Thanks for the hint with the blank item. Now I just need to find a way to hide the checkbox for that blank item. Share this post Link to post
softtouch 9 Posted March 17 1 minute ago, Stano said: Isn't it enough to just make it inaccessible? I just set DefaultDraw to false in onCustomDrawItem for that dummy item, and I have now the group header with an invisible item and no checkbox for that, so thats all fine so far. Share this post Link to post