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.
Unfortunately, activation email could not send to your email. Please try again.

KeyPress event Enter in cell

Thread ID:

Created:

Updated:

Platform:

Replies:

26652 Mar 29,2005 09:13 AM Mar 29,2005 10:43 AM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 29, 2005 09:13 AM

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 10:05 AM

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

Administrator [Syncfusion]
Replied On 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.

CONFIRMATION

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.

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.

;