Author Topic: Winforms Listview Performance.  (Read 1315 times)

0 Members and 1 Guest are viewing this topic.

Offline se5a (OP)

  • Lt. Commander
  • ********
  • Posts: 288
  • Thanked: 30 times
Winforms Listview Performance.
« on: February 04, 2022, 04:30:14 PM »
Steve, I've noticed some large hangups with listview, and looked into it a bit, you might find this topic useful:

https://stackoverflow.com/questions/9008310/how-to-speed-adding-items-to-a-listview

In a nutshell, calling:
listView.BeginUpdate(); before a for/foreach loop and ending withlistView.EndUpdate(); should improve performance here significantly.
The above topic also goes into more detail for getting even further improvements, but at least the above should improve things significantly.

 
The following users thanked this post: skoormit

Offline Steve Walmsley

  • Aurora Designer
  • Star Marshal
  • S
  • Posts: 11684
  • Thanked: 20489 times
Re: Winforms Listview Performance.
« Reply #1 on: February 05, 2022, 05:04:41 AM »
Thanks, I'll take a look.
 
The following users thanked this post: se5a