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

Determining GotFocus reason.

Thread ID:





20191 Oct 12,2004 09:51 AM UTC Oct 12,2004 10:22 AM UTC WinForms 1
Tags: GridControl
Asked On October 12, 2004 09:51 AM UTC

Hi I need to be able to determine why the grid has got focus, if it''s from a user mouse click, or if it''s being Tabbed to. Is there any way of finding this information out? Thanks Martin

Administrator [Syncfusion]
Replied On October 12, 2004 10:22 AM UTC

You can try handling the grid''s Enter event and checked if the left mouse button is down.
private void gridControl1_Enter(object sender, EventArgs e)
	bool clicked = Control.MouseButtons == MouseButtons.Left;


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