This can be beneficial to other community members reading the thread.When all you've got is a Hammer, Every Problem looks like a Nail. Since you are already getting a Row Updating event, I'll work from there. Please post the code for your Page_Load method and the that handles your Update (your C# code) so we can have a better look at what's going on. Please give some references and/or details of how to. This wipes out the data provided by the user during editing (editing happens after the page load). 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. The event has event-arguments of type Grid View Update Event Args. Text) but i am getting all the old values stored in the gridview when the grid was loaded , kindly suggest. There is no need to get them by using Find Control on the Grid View Row. Please remember to click “Mark as Answer” on the post that helps you.
Make sure the parameters on the update match the field names (@branch Name, @Parent Id).
Hi there, I have the same problem and I checked the e.
New Values,this is equal to Nothing, I Bind it to List object.
To get both the old and the new value of a field named unit_price, (for the example as a String.
Unless they are Key fields, there isn't really a way to get to these. Data Bind in Row Updating (or at least before the Update is actualy processed) is better not done.