Gridview rowupdating was not handled
In order to do so select "Edit Columns..." from the smart tag of the Grid View. Select Company Name and Contact Name fields and click on "Covert this field into a Template Field" link.
This will convert them from Bound Field to Template Field.
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.
Set the Control To Validate and Error message properties to the appropriate values. Up till now we used the validation controls to validate Grid View input on client and server side.
Row Deleting – Occurs when a row's Delete button is clicked, but before the Grid View control deletes the row.
By default when the Grid View controls goes in edit mode, it displays Text Boxes for entering values.He is the Editor of a Developer Magazine called DNC Magazine.He has also written two EBooks 51 Recipes using j Query with ASP. NET Architecture MVP (Microsoft Most Valuable Professional) works as an Architect Consultant and provides consultancy on how to design and develop Web applications.Suprotim is also the founder and primary contributor to Dev Curry, Dot Net Curry and SQLServer Curry.