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. Image for the cookie policy date
close icon

Allow enter key to pass through to form

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

3 Replies

AD Administrator Syncfusion Team 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.


AD Administrator Syncfusion Team September 21, 2005 01:14 PM UTC

Thanks, that worked great. Akash


AD Administrator Syncfusion Team 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.

Loader.
Live Chat Icon For mobile
Up arrow icon