Rowupdating in asp net c
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.
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.
We have selected four columns from Employee Details table.
NET, like how to insert, delete and update record in Grid View control.
In this article however, I'll show you how a Grid View control can be used to update (edit), delete and insert data in a remote SQL Server table. Attach the Grid View with the Sql Data Source control, the way we have shown the link above.
After you have run the website, you will see the Grid View showing details of employees in tabular format.
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.