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

Allow enter key to pass through to form

Thread ID:





34959 Sep 20,2005 12:59 PM UTC Sep 21,2005 01:29 PM UTC WinForms 3
Tags: GridControl
Administrator [Syncfusion]
Asked On September 20, 2005 12:59 PM UTC

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 09:21 AM UTC

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 01:14 PM UTC

Thanks, that worked great. Akash

Administrator [Syncfusion]
Replied On September 21, 2005 01:29 PM UTC

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.


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

This page will automatically be redirected to the 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