Asp net gridview edit rowupdating
NET Grid View control with a SQL Server table and then implement Insert, Edit, Delete, Paging and Sorting functions in it.In this sample, I don’t use Data Source controls and manipulate data in ADO. We need to convert these Bound Fields to Template Fields.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. NET 2.0 Grid View control allows us to quickly edit and delete records.However, most of the real world cases call for validating the data being edited or deleted. Drag and drop an SQL Data Source control on the web form.There can be several approaches taken for validating data. For our example we are going to use Customers table of Northwind database. Open its smart tag and choose "Configure Data Source" option to start Configure Data Source wizard.
By default when the Grid View controls goes in edit mode, it displays Text Boxes for entering values.
You can not attach validation controls directly to these Text Boxes.