For Editing set Autogenerate Edit Button = True at property of Details View control.
First Bind Data to Details View control from sql server..
To declare the row fields, first set the Details View. When both are used, explicitly declared row fields are rendered first, followed by the automatically generated row fields.
However, to make use of the Details View control's advanced capabilities you must explicitly declare the row fields to include in the Details View control. The row fields specified are added to the Details View. Note: Explicitly declared row fields can be displayed in combination with automatically generated row fields.
After setting the Details View’s Item Updating method, you will need to modify the SQL Data Source’s Update Command, Update Command Type, and Update Parameters.
The product table is not updating with the new values.
I think the problem is to do with the new values from the textbox not being retrieved.
In this post I will explain an issue related with Read-only data fields.
We will bound a Details View control to a Sql Data Source for simplicity reason you can use any data source control ... After configuring the pet Shop Sql Data Source and enable update, insert and delete we set the Details View Data Source Id to our pet Shop Sql Data Source Id and so the Details View now have 3 fields bound to Category table.
As when I assign updated Name to Label1 it displays the old product name value and not the one in the textbox.