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.