Gridview rowupdating validation

This tells Grid View that the event handler should be cancelled.

gridview rowupdating validation-81

This will convert them from Bound Field to Template Field.Next, drag and drop a Required Field Validation control below the Text Box.Set the Control To Validate property of Required Field Validator control to Text Box1 (i.e. Also, set its Error Message property to “Please enter company name”.Here, we set the Data Source of the Grid View to Sql Data Source1. We also enable paging, sorting and editing features of the Grid View.By default when the Grid View controls goes in edit mode, it displays Text Boxes for entering values.

Gridview rowupdating validation