Detailsview itemupdating e newvalues
Note that regard less of old values and new values database is updated with all the data in Details View(edited columns and non-edited columns). //ASPX //code behind c# using System; using System. To keep the control in insert mode after an insert operation, set the Keep In Insert Mode property to true.
This keeps the Grid View control synchronized with the Details View control.
Seeming that Web Apps are stateless that would be one area to look at. To List(), which does a conversion of the results of the query and any modification of this new list does not effect the Data Context and therefore not change can be made to the DB.
You may want to use a Linq Data Source control which seems to keep the Data Context object persistent.
I got many mails about how to use Details View without SQLData Source.
I have a Details View control with Edit, Delete and New buttons.