Aurora 4x

C# Aurora => C# Suggestions => Topic started by: se5a on February 04, 2022, 04:30:14 PM

Title: Winforms Listview Performance.
Post by: se5a 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.

Title: Re: Winforms Listview Performance.
Post by: Steve Walmsley on February 05, 2022, 05:04:41 AM
Thanks, I'll take a look.