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

Event before GridGroupingControl gets focus/entered

Hi,

I have a master detail form in which I want to capture the moment when the user navigates to the grid.
What I need to do is do some overall validations at the master level, before allowing the user to navigate to the grid.

What is the best approach to do so? I am considering  the Enter event of the Grid, is there a better way of doing so?

Thanks

1 Reply

MG Mohanraj Gunasekaran Syncfusion Team February 11, 2019 12:48 PM UTC

Hi Loai, 
 
Thanks for using Syncfusion product. 
 
Yes, you can use the TablControl.Enter event to make the ActiveControl based on the condition. Please refer the following code example and the sample. 
 
C# 
gridGroupingControl1.TableControl.Enter += GridGroupingControl1_Enter; 
private void GridGroupingControl1_Enter(object sender, EventArgs e) 
{ 
    if (this.gridGroupingControl1.Table.Records.Count > 10) 
    { 
        this.button1.Select(); 
    } 
} 
 
 
 
Please get back us if you need any further assistance on this. 
 
Regards, 
Mohanraj G 


Loader.
Up arrow icon