ASPxGridView showing row updating errors
I am trying to display an error message in the edit section of a ASPxGridView when a user has tried to submit invalid data.
I have been looking around and have found one blog that allows me to place an error message in red once it has filed validation by throwi开发者_JS百科ng a New InvalidOperationException.
I am using the rowUpdating method as described in the blog, but the exception forces my code to stop the code in visual studio (like you would at a break point) and displays the message. Once I click play again, the code carries on and the program continues.
How do I stop the application from stopping once the exception has been called and carry on. Is there another way to do this?
ASPxGridView FAQ: How to Enable Editing
Look at Data Editing. There is also a link about Validating data on the same page.
精彩评论