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

Message problem

On the Current_Cell_KeyUp event, we have written a code to add a new row if the key pressed is Enter or Tab only if the last row has some valid data. Also, on there is a validation placed on the Validating event to check the data type, as the last column is a numeric field. In case the data entered in the last row is invalid, a message is displayed to the user from the validating event. The problem faced is that on this validating message if the Enter key is used to close the message box, the Current_Cel_KeyUp event also gets triggered. Is there a way to avoid this? Please suggest. Note: If the message box is closed using the Esc, spacebar or mouse click there is no problem. We are using 1.6.8 version of the grid.

1 Reply

AD Administrator Syncfusion Team November 6, 2004 02:39 PM

In your validating event, can you set a flag to indicate validation failed? Then in KeyUp, check this flag for true and skip your code in this case.

Loader.
Live Chat Icon For mobile
Up arrow icon