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.

How to trap Enter key?

Thread ID:





4400 May 10,2003 01:51 AM May 10,2003 02:45 AM Windows Forms 1
Tags: GridControl
Asked On May 10, 2003 01:51 AM

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 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


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.