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.

Determining GotFocus reason.

Thread ID:





20191 Oct 12,2004 05:51 AM Oct 12,2004 06:22 AM Windows Forms 1
Tags: GridControl
Asked On October 12, 2004 05:51 AM

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 06:22 AM

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.

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.