Kevin said:
What is the fastest way to clear the contents of a ListView?
listView1->Clear() takes far too long.
Clear the rows only? listview1.Items.Clear (or -> instead of .)
Takes only 1.5s even with 100 columns and 10,000 rows.
Didn't test with more data because only filling takes 25s. I think much
more a user should not have to handle.
Usually, when adding a larger number of items, I'd suggest to call
listview1.beginupdate before and listview1.endupdate afterwards. However,
this doesn't make any difference when calling Clear. 1.5s with or without
begin/endupdate.
Armin