Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
324
Canceling RowUpdating() event resets values back!
posted

In my gridRowUpdating() event, I perform some client-side validation.  If the validation doesn't pass, I cancel the update by calling e.set_cancel(true);

This works fine, except for this big caveat: the row will then revert back to its original values.  This is bad because all the information that the user provided then goes away, and he has to start all over again!

Is there any way to cancel the Gridview's Update, without clearing out the data in the row?

Parents Reply Children