Finally we need to populate the Sort Expression and Sort Direction when they change, and we’ll handle that in the Sorting event.Also like paging, so show that it does get called, databinding is handled in the Sorted Event ( First, we obtain the User ID of the affected row from the Grid View Data Keys collection, which we use to pull the appropriate record from the database.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.Here is my detailsview: I tried adding a label to my page and then once updated Name had been assigned the value of the textbox I tried assigning that value to the label and it printed out the old product name not the one in the textbox.I can't see anything wrong with the code and it's driving me mad. hi, i think you miss something, try to see the table where you save the value of the fields you entered if it change anything, if it change anything, then you have put some code on your SP that retrieves data after the UPDATE code that you have.Hi While working with Details View control I have come up with few resources when you want to perform update to the data within Details View using buttons out side of Details View control. Here is the source code to update all the columns in Details View with edited data.
How to get new updated values from detailsview on item updating event Hi, I have been researching quite a bit but could not achieve a solution to this problem.Ok, Now I'm sure this was working the other day and I don't think I've changed anything but now it's not working and I can't see anything wrong with the code.Basically I have a details view with product information in it, when the user clicks edit it goes into edit mode when I change any of the fields and click update it updates but with the old values.Message) End Try 'The error I am getting is: The Sql Parameter Collection only accepts non-null Sql Parameter type objects, not String objects.): WORKS ON MY MACHINE ========= I know that CVS was evil, and now i got the proof: =========Why not do it all in SQL???