When I open my form that contains a DataViewGrid the first row is always automatically highlighted in blue showing that it is selected.
If I use
Me.DataGridView.ClearSelection()
the highlighting disappears and the row "appears" to be unselected but when I check with
Me.DataGridView.CurrentRow.Index the value returned indicates that the row is still selected, just the highlighting has disappeared.
What is the correct method to deselect a selection?........and
What is the correct method to check that a row has been selected?
(I am hoping to code a button that checks if a selection has been made, warn if not, then open an edit screen for the selected row)