Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Any tips for making adding ListViewItems to a ListView faster?

$
0
0

Hi,
I am adding items to a ListView by first populating an array<ListViewItem^> and then using ListView->Items->AddRange().   The AddRange() alone for 70,000 items takes about 50 seconds before the GUI comes back.    The ListView is in details mode.   This seem long to me since viewing standard Windows in details view with that many items is significantly faster.   Is there a way to make it more efficient?

Thanks




Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>