Asp net rowupdating newvalues
We need to convert these Bound Fields to Template Fields.
Just like we attached the Required Field Validator control to the Text Box, attach a Custom Validator to the Contact Name column. If you run the web form and try entering wrong value in the Contact Name column then you will see the error message displayed as before and the value will not be accepted by the Grid View control.
This will display the template designer for the column as shown in Figure 6.
Next, drag and drop a Required Field Validation control below the Text Box.
This way you can attach client side validation controls to the Grid View columns.
Let's proceed further by validating on the server side.