I’ve been trying to find out how to select all cells under a Column with a ‘mouse right click+menu+Select this Column’…
MSDN isn’t helping much…
I get this error when I try to change selection mode:
DataGridView control's SelectionMode cannot be set to FullColumnSelect while it has a column with SortMode set to DataGridViewColumnSortMode.Automatic.
Thanks,
Y_Y
Loop through the cells in the column and set their Selected property to true.
It sounds horrible, but I believe it’s the only way to select an entire column and keep automatic sorting.
For example: