After searching long and hard I found a great article that solved my issue.
Take a look at the page load if you are binding on post back then the values get updated before you are able to access them.
In the code below I have shown how you can extract the new values from the textboxes inside the Grid View.
Once, you got the values you just need to send them to the database.
HTML CODE: C# Code Behind: private void Bind Data() protected void gv Categories_Row Editing(object sender, Grid View Edit Event Args e) protected void gv Categories_Row Updating(object sender, Grid View Update Event Args e) does a template field allow you to get around indexing?
Also, my code below works pretty well, I even have the framework worked out to get my data values from the gridview.
A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.
To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.
Text; returns the the value of the "decription" which existed prior to typing in the new value. Thus every time I would click on Update, the data would get bound to the grid again after fetching the same data from the data base. I have a webpage that has a grid that allows select as well as edit. When I attempt to get to values in the rowupdating event I get the old values (which makes sense from your post). My question is that when I add the binding code inside If Not Page. Inside the On Row Data Bound event handler, a loop is executed over the Button controls of the Grid View Cell.If the Command Name of the Button is Delete then Java Script Confirmation Box script is assigned to its On Click attribute.When the user clicks EDIT then makes a change or two, then UPDATE, the changes are lost. I did some google searches, and there were examples out there but it just isn't making sense. Hi, I would first suggest that you use the Template Columns instead of the Bound Columns this way you are not dependent on the index/position of the column in the Grid View. Now you can ask questions directly to me on my new site ASPForums. Net Question Answer site, specially started to allow visitors of this site ask their doubts and queries. Just click the Ask Now button and ask your question now.Finally the Data Table is saved back to the View State and the Grid View is again populated. Now you can ask questions directly to me on my new site ASPForums. I am having trouble 'saving' the changes the user makes when editing text ina field on a gridview. before that i want just using Find control and casting and then retrieving all lot code. If values are same they could notify user to change the value(give new cell value). Every one can use it to compare the new value with old ones.