Rowupdating example gridview
Now, when an user edit a row then click update, I'm having problem getting the new values in gridview's rowupdating event, it always returns the old values.I believe that databinding on every postback is the cause but that's not something that I can change right now, same goes with the autogeneratedcolumns setting.I have been using the names of the actual controls but nothing happens.Upon submit, the screen returns blank, and the database is not updated. After I click the update button, I change the value to 150. My gridview is not bound to a Sql Datasource or Object Datasource. Thanks The currency manager is in Windows Forms programming. My hunch is that the Sql Data Source and Object Data Source has provisions to tie into an update method/stored procedure.
How to get gridview values from Row Updating method I have a gridview with the select & edit commands enabled.
I'd like to know if there are any other ways to retrieve the new values?
there is a bound field with the product id, a template field (with a table and a load of labels which are bound to the product details via an sql data source and gridviewrowdatabound) and a buttonfield which is the add to cart button.
i am calling the rowcommand with the button field and need to get the product id from the boundfield and the quantity from a text box in the template field and write them to my data grid.