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.

Allow enter key to pass through to form

Thread ID:

Created:

Updated:

Platform:

Replies:

34959 Sep 20,2005 08:59 AM Sep 21,2005 09:29 AM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On September 20, 2005 08:59 AM

Hi, I have the grid on a form that has an OK button. The forms AcceptButton property is set to the OK button. However, when I hit enter after editing a cell, the key press is intercepted by the grid and does not get to the form. Is there any way to allow the enter key press to be passed to the form? Akash

Administrator [Syncfusion]
Replied On September 21, 2005 05:21 AM

Hi Akash, You need to set the WantEnterKey to false. this.gridControl1.WantEnterKey = false; Here is a sample: EnterNextControl_7762.zip Let us know if this helps. Best Regards, Jeba.

Administrator [Syncfusion]
Replied On September 21, 2005 09:14 AM

Thanks, that worked great. Akash

Administrator [Syncfusion]
Replied On September 21, 2005 09:29 AM

Hi Akash, Thanks for your update.Please feel free to contact us if you have any other concerns. Thanks for choosing Syncfusion Products. Best Regards, Jeba.

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.

;