We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

KeyPress event Enter in cell

Thread ID:





26652 Mar 29,2005 02:13 PM UTC Mar 29,2005 03:43 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On March 29, 2005 02:13 PM UTC

Enter is not catched by the gridControl1_CurrentCellKeyPress event in the gridControl Is it normal ? how to do this ?

Administrator [Syncfusion]
Replied On March 29, 2005 03:05 PM UTC

Is it possible not to move to the next cell when cliking on Enter

Administrator [Syncfusion]
Replied On March 29, 2005 03:43 PM UTC

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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon