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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Determining GotFocus reason.

Thread ID:

Created:

Updated:

Platform:

Replies:

20191 Oct 12,2004 09:51 AM UTC Oct 12,2004 10:22 AM UTC WinForms 1
loading
Tags: GridControl
Martin
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;
	Console.WriteLine(clicked.ToString());
}

CONFIRMATION

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.

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

;