Public Overrides Function ProcessKey(ByVal keys As KeyEventArgs) As Boolean
Try
If keys.KeyCode = Windows.Forms.Keys.Tab Or keys.KeyCode = Windows.Forms.Keys.Enter Then
If GridViewElement.Navigator.IsLastColumn(GridViewElement.CurrentColumn) Then
'Me.GridControl.ClearSelection()
Me.GridControl.GridNavigator.SelectNextRow(1)
Dim columnIndex = Me.GridControl.Columns("NewPrice").Index
GridViewElement.CurrentRow.Cells("NewPrice").IsSelected = True
GridViewElement.CurrentRow.Cells("NewPrice").BeginEdit()
End If
End If
Catch ex As Exception
End Try
Return MyBase.ProcessKey(keys)
End Function
Try
If keys.KeyCode = Windows.Forms.Keys.Tab Or keys.KeyCode = Windows.Forms.Keys.Enter Then
If GridViewElement.Navigator.IsLastColumn(GridViewElement.CurrentColumn) Then
'Me.GridControl.ClearSelection()
Me.GridControl.GridNavigator.SelectNextRow(1)
Dim columnIndex = Me.GridControl.Columns("NewPrice").Index
GridViewElement.CurrentRow.Cells("NewPrice").IsSelected = True
GridViewElement.CurrentRow.Cells("NewPrice").BeginEdit()
End If
End If
Catch ex As Exception
End Try
Return MyBase.ProcessKey(keys)
End Function