Hello, I'm trying to prevent a listView from repainting when I change group assignments for the items. Let's assume I have two groups with 100 items in each and moves 100 items from group A to group B, then the listView will repaint itself a lot, slowing down the operation and flickering (can be solved by listView.Visibl e = false; but it doesn't speed it up, i.e. the listView still repaints itself).
There are the listView.BeginU pdate() and EndUpdate() methods, but they don't seem to work for other actions than on the listView.Items collection (e.g. listView.Items. Add)
I can turn it into OwnerDraw = true; but that would mean a lot of work, I guess? This is both a visual and performance enhancement though, so maybe it's worth it, but maybe there's a much simpler solution?
Regards, Simeon
There are the listView.BeginU pdate() and EndUpdate() methods, but they don't seem to work for other actions than on the listView.Items collection (e.g. listView.Items. Add)
I can turn it into OwnerDraw = true; but that would mean a lot of work, I guess? This is both a visual and performance enhancement though, so maybe it's worth it, but maybe there's a much simpler solution?
Regards, Simeon
Comment