Reg: Grid Data Bound Control focus

Hi,
I have grid data bound control and few Microsoft control like text box, combo box, button, etc., on my form. Which event should I use to catch, when ever user changes the focus from grid data bound control cells to Microsoft control?

Regards,
Anna

1 Reply

AD Administrator Syncfusion Team January 23, 2007 04:00 PM UTC

Hi Annas,

You can handle the Deactivated event and get the active control using the Form.ActiveControl property. Here is a code snippet.

private void gridDataBoundGrid1_Deactivated(object sender, System.EventArgs e)
{
Console.WriteLine("Active Control Name is : " + this.ActiveControl.Name);
}

Best Regards,
Haneef

Loader.
Up arrow icon