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

How to trap Enter key?

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.

1 Reply

AS Ashish May 10, 2003 02:45 AM

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

Loader.
Live Chat Icon For mobile
Up arrow icon