Asp net gridview rowupdating e oldvalues
So what you need to do is store the data source (maybe in Session) and only bind rebind the data when you absolutely need to (Like during the Is Not Post Back) Do you understand?
The problem was that in this particular procedure I did a Re Bind from the GV, which means, I lost all my changes and could only see the old (original) values.d) I set Data Member="Default View" I am not sure what am I missing.New Values collection coming from the Grid_Row Updating Event is Empty. If you reset the Data Source at this stage, your values for updating will be lost. I actually don't know how to write the Row Updating function, I just found it from the internet, and so of course it's not working. Please give some references and/or details of how to. Ok what's happening is that you are binding the data source for the Grid View every time a postback occurs in the Page_Load method. Count ----------- The most common problem for losing new data entered while updating a Grid View or Data Grid is that you are resetting the Data Source for the Grid View or Data Grid in the Page_Load method. I actually don't know how to write the Row Updating function, I just found it from the internet, and so of course it's not working.