Right click on the Grid View and select "End template editing" Run the web form.
Click on the Edit button of the Grid View so that it goes into the edit mode.
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.
We will use the Custom Validator control for this purpose.
You should see an error message as shown in Figure 7.Click on the "Advanced" button and check the "Generate INSERT, UPDATE and DELETE statements" checkbox (Figure 3). Now that you have configured the SQL Data Source control let's bind it with a Grid View control. Open its smart tag and configure it as shown in Figure 4.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.Enter the database details as per your setup and click on OK.On the next step select Customer ID, Company Name, Contact Name and Country columns (Figure 2).