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

How to navigate in DataGrid

Thread ID:





505 Jul 2,2002 03:13 AM UTC Jul 2,2002 08:29 AM UTC WinForms 1
Tags: FAQ
Asked On July 2, 2002 03:13 AM UTC

Hi, How can I move focus to cell to cell in a DataGrid using "Enter key" instead of "Tab key"?? Can anyone help. Thank thomas

Clay Burch [Syncfusion]
Replied On July 2, 2002 08:29 AM UTC

One way you can do this is to use a derived DataGrid and override the ProcessCmdKey. In your override, catch the Enter key and use SendKeys to change it to a Tab key.
protected override bool ProcessCmdKey(ref System.Windows.Forms.Message msg, System.Windows.Forms.Keys keyData)
			if(msg.WParam.ToInt32() == (int) Keys.Enter)
				return true;
			return base.ProcessCmdKey(ref msg, keyData);


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