Se si ha la necessità di evidenziare un'intera riga di una DataGrid, selezionando solamente una cella, un esempio di codice è il seguente:
Private Sub dg_prova_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles dg_prova.MouseUp
Dim pt As Point = New Point(e.X, e.Y)
Dim hti As DataGrid.HitTestInfo = dg_prova.HitTest(pt)
If hti.Type = DataGrid.HitTestType.Cell Then
dg_prova.CurrentCell = New DataGridCell(hti.Row, hti.Column)
dg_prova.Select(hti.Row)
End If
End Sub
Provato con VisualStudio 2008 e VisualStudio 2010