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


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?


1 Reply

MG Mohanraj Gunasekaran Syncfusion Team February 11, 2019 07:48 AM

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. 
gridGroupingControl1.TableControl.Enter += GridGroupingControl1_Enter; 
private void GridGroupingControl1_Enter(object sender, EventArgs e) 
    if (this.gridGroupingControl1.Table.Records.Count > 10) 
Please get back us if you need any further assistance on this. 
Mohanraj G 

Live Chat Icon For mobile
Up arrow icon