Gridview rowupdating was not handled

There is a very simple validation business rule: the record should have filled either Person Name or Company Name.(I know that this rule can be implemented in the Row Inserting event, but there are more complex rules that is not easy to implement there) When the rule is violates, inserting of new ASPx Grid View row fails with unhandled exception.Neither I don't want to create and store the object manually in Row Inserting event handler - it would depreciate advantages of bi-directional data binding.I've created (and attached) a sample solution with a very simple Object Data Source.

Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose.Please refer to the Dev Website Terms of Use for more information.The visitors to a web site can typically be divided into two groups: the users and the administrators.For example, you can simply do not write anything to a user, but the Edit Form will not be closed. Row Inserting event: Hello Vest, I'm afraid you've not understood my situation well.The key problem is that I'm NOT using calalback.I think (and I've verified - see attached sample solution) that when Enable Call Backs="false", the ASPx Grid View. Thus when any error occurs on inserting, a) the page fails with unhandled exception (something like I've sent you the stacktrace) b) I can handle and mask the exception in ASPx Grid View.


Leave a Reply