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

Determining GotFocus reason.

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

1 Reply

AD Administrator Syncfusion Team 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;
	Console.WriteLine(clicked.ToString());
}

Loader.
Up arrow icon