开发者

ASPxGridView showing row updating errors

开发者 https://www.devze.com 2023-03-10 10:03 出处:网络
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 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号