I can't figure out how to programmatically select all items in a huge listview. It seems like it should be relatively easy, like "ListView.SelectAll()" or "ListView.Items.SelectAll()", but that doesn't appear to be the case. I do not find the "select all" command. STRG+A does not work either and I can't call it therefore.
Any better ideas than a flickering slow loop through all the items which I tried?
Note: I seek an inbuild command for this, I might have overlooked the rite function.
What I have tried:
I tried to loop through each element with foreach loop and set the property for each element separatly. it wasn't working fully, the listView flickered horrible and it took ages for 50000 elements to be selected. I found some similar questions in the internet, but no answers provided. I seek a better answer than my solution, an inbuild command or something alike as pure C#. Does somebody know a command?
VB6 had a "SelectAll" property and it selected up to 100K elements in a second. What I have to do to get this functionality in my C# program?