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

Message problem

Thread ID:

Created:

Updated:

Platform:

Replies:

21309 Nov 6,2004 12:34 PM UTC Nov 6,2004 07:39 PM UTC Windows Forms 1
loading
Tags: GridControl
Kewalramani Kanchan
Asked On November 6, 2004 12:34 PM UTC

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.

Administrator [Syncfusion]
Replied On November 6, 2004 07:39 PM UTC

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.

CONFIRMATION

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.

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

;