I am using the DataGridView control in Windows.Net. And using the Keypress event
Private Sub grdTimeSeries_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles grdTimeSeries.KeyPress
Dim KeyAscii As Short = Asc(e.KeyChar)
If KeyAscii = 13 Then
----some code
Endif
End Sub
When I am pressing the enter key selecting row number 1 and pointer goes to second rows automatically and row index also returns 2. Can you please tell me why it is happening and also the way to stop this..
Please suggest