Rowvalidating aspxgridview

rowvalidating aspxgridview-4

You finally exhale, relieved by the fact that you now understand the situation – the Grid Police is hard at work, directing your attention to the errors in your data. Handle the Html Row Prepared event to indicate rows with invalid data.

This event is raised for each data row when a corresponding row within the table is created. Right away, your eye is drawn to the red circle with an exclamation mark.

And yes, I do row validating also, but this is useful only for validating business logic.

So, how to validate controls that are bound inside Edit Form template on server side?

I have an ASPx Grid View with edit form template and some bound controls inside.

Comments