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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Event before GridGroupingControl gets focus/entered

Thread ID:





142572 Feb 11,2019 03:29 AM UTC Feb 11,2019 12:48 PM UTC WinForms 1
Tags: GridGroupingControl
Asked On February 11, 2019 03:29 AM UTC


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?


Mohanraj Gunasekaran [Syncfusion]
Replied On 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. 
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 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon