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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to trap Enter key?

Thread ID:





4400 May 10,2003 05:51 AM UTC May 10,2003 06:45 AM UTC WinForms 1
Tags: GridControl
Asked On May 10, 2003 05:51 AM UTC

In GridDataboundGrid when "Enter" key is pressed the row is getting double in size. I tried setting the wraptext property to false. But that just keeps the row size,but the data is getting added to the space created by pressing Enter key. Is there any way i can trap this enter key? I already tried using the onkey event as u said when i asked about shifting the focus to the next row on the tab key press. But it didn't help. Pls help me with a sample.

Replied On May 10, 2003 06:45 AM UTC

Hi If you want to suppress the Enter key then you can simply set the allowEnter to False. and if you want to trap the Enterkey then you shud write the handling code in CellKeyDown event


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

Live Chat Icon For mobile
Live Chat Icon