WPF DataGrid - SelectAll performance is erratic

Steve Williams 26 Reputation points
2021-08-26T23:06:05.14+00:00

I'm encountering a problem where I have a WPF DataGrid bound to a List of structs. If I use SelectAll to select all the rows, sometimes it highlights all the rows instantly regardless if there are hundreds of thousands, and sometimes (with exactly the same data) the SelectAll can take minutes or longer. It's very strange - I can execute the same program again and again with the same data but the SelectAll performance is hugely erratic.

If no one has ever heard of this, I'll try to reproduce it in some code, but it's annoyingly random and thus hard to reproduce. Thanks.

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,671 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
762 questions
{count} vote

Accepted answer
  1. Sam of Simple Samples 5,516 Reputation points
    2021-08-27T20:57:13.17+00:00

    Go to the Help menu in Visual Studio. From there you can send feedback. First search for existing feedback relative to the problem. I am currently unable to search; Microsoft won't sign me in plus I am using VS 2017.


0 additional answers

Sort by: Most helpful