I've got a DataGridView object in a C# program of mine that, depending on which filter settings are turned on, sometimes has hidden rows in it. I have the MultiSelect setting in the DGV set to True and when another button is clicked, the ID from each row is moved over to a ListBox. However, I've noticed if I hit CTRL-A that all the rows, including the ones that are hidden, are moved over as well. I'm hiding the rows by changing their Visible property to False.
I looked around but couldn't find a solution to have the CTRL-A command only select visible rows. Is this possible?
Thanks!