How to use the Enter and Tab key in Grid to go to the new row (the row with an asterix)

Aug 1 2006 5:42 PM
Hi
I have made my DataGrid move to the next cell on TAB and Enter (the code
below) and it
works fine, but when standing in the first cell on the new row (last row)
and pressing TAB or Enter the cursor moves to the second cell on the
PREVIOUS row and not the new row. Why? And if I MOUSE_CLICK in the first
cell on the new row, I can press TAB and it works fine. Is there a way I can
make pressing the TAB work like Mouse_Clicking the new row??

Protected Overrides Function ProcessCmdKey(ByRef msg As
System.Windows.Forms.Message, ByVal Keys As System.Windows.Forms.Keys) As
Boolean
        If (msg.WParam.ToInt32() = CType(Keys.KeyCode.Enter, Integer)) Then
                Keys.Send("{Tab}")
                Return True
        End If
        Return MyBase.ProcessCmdKey(msg, Keys)
End Function

Please HELP!!!
Fia