Displaying Model State Errors Inside GridView Columns

Published 07 August 13 09:31 AM | bipinjoshi

ASP.NET 4.5 web forms support model binding features. Additionally they can make use of model validation using data annotation validators. The validation errors thrown by data annotation validators can be easily displayed in a web form using ValiationSummary control. While this arrangement works great, at times you want something customized. This article shows how model errors can be displayed inside a GridView column. You can use similar technique for other databound controls such as DetailsView and FormView.

http://www.bipinjoshi.net/articles/5ee3ef1a-b1ff-4871-99dc-f1a66c3c0004.aspx

 

Comments

No Comments