Aspxgridview rowupdating tutorial
Next event is the Grid View Row Editing event to give ASP. You need to set the Edit Index property of the Grid View with the New Edit Index property of the Grid View Edit Event Args class.If user clicks the Cancel button while Grid View is in editing mode, you need to Cancel the Editing process and also need to reset the Edit Index property to -1 in the Row Canceling Edit event of the Grid View control as shown below: The last step is to handle the Row Updating event to actually update the back end database. My guess is that if you can get the Gridview has a Currency Manager somehow attached, then you can probably get the values from it.
That probably needs to be linked into the Object Data Source along my Get Products, as well as the Add Products, and Delete Product methods. Problem is, I don't have the time at the moment yet. And back to my original question, how to I get the new value? I have a gridview, go into edit mode, enter a value in a textbox, then click update.
This collection only requires the row index no and it will give us the primary key.
Last line of the following code is calling a local method for updating the database and passing all the parameters to this method.
This is all started from the Data Tutorial series found on the website. tabid=63 Maybe I should look into using the Get Products method with an Object Data Source and see how that works. Now I can get the Bound Field newvalues with no problem in the Row Updating event.
I've deleted the datasource and gridview and started again from scratch, but I still get the same problem.