I'm having a problem making a selection "stick" in this bound DataGridView control.
I am able to bring up the code shown below by clicking on the RowHeader of a given row. If I click on the (say) 3rd row the RowIndex is shown at 2 (correct, so far.) However, at that point the thing gets lost.
The second message box shows the value of Cells(8) for the first row (RowIndex 0). Moreover the cursor also jumps to the first row and stays there. I will also mention that it jumps to the 3rd cell.
If I click on any other RowHeader I also get the same value for Cells(8) from the first row. Also the cursor jumps to the first row (RowIndex 0) but in a different cell. Who knows why? I don't. Perhaps you have a better solution.
Private Sub EvalItemsDataGridView_RowHeaderMouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles EvalItemsDataGridView.RowHeaderMouseClick
Me.EvalItemsDataGridView.CurrentCell = Me.EvalItemsDataGridView(e.RowIndex, 0)
Dim i As Long = (EvalItemsDataGridView.CurrentRow.Cells(8).Value())