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

Suspending Events don''t allow the focus to move out from CurrentCell

Thread ID:





56217 Feb 12,2007 04:52 AM UTC Feb 13,2007 12:24 AM UTC WinForms 1
Tags: GridControl
Ashish Agarwal
Asked On February 12, 2007 04:52 AM UTC


I am using Syncfusion DataGrid
I am using CurrentCellValidating event to Validate the data Entered by the user, if the the data is invalid then the user is not allowed to tab out of the current cell and if the entered data is valid then pressing the tab key should move the focus out of the grid and a new row should be added to the grid so that the user can enter new data.
Now, the problem I faced was that as soon as I add a new row in the grid by increasing the RowCount of the grid in the CurrentCellValidating Event it again raise the same Event i.e. CurrentCellValidating event is raised from currently executing CurrentCellValidating event handler which create inconsistencies. To suppress that I suspended the current cell events by .CurrentCell.SuspendEvents before adding the new row and used .CurrentCell.ResumeEvents to resume events after adding the new row.
Now, by doing so the new problem I am facing is that on pressing tab key because of suspending events in the CurrentCellValidating event the focus does not move out of the CurrentCell after the Event Handler completes.

Please suggest what needs to be done.

Administrator [Syncfusion]
Replied On February 13, 2007 12:24 AM UTC

Hi Ashish,

Here is a forum thread that discuss with the simillar issue.

Best regards,


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