ADAdministrator Syncfusion Team March 29, 2005 10:05 AM
Is it possible not to move to the next cell when cliking on Enter
ADAdministrator Syncfusion Team March 29, 2005 10:43 AM
You can set the EnterKeyBehavior property to control how the current cell moves when you press Enter.
Me.GridControl1.EnterKeyBehavior = GridDirectionType.Right
If you want to catch the enter key on a cell that is being edited, then try the CurrentCellControlKeyMessage event. To get teh key code, you can use
Dim keyCode As Keys = CType(e.Msg.WParam.ToInt32 And Keys.KeyCode, Keys)
You also need to check the message as this eent is raised for both KeyDown and KeyUp.