Rowupdating example gridview

Rated 3.95/5 based on 683 customer reviews

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?

Any advise is greatly apprecia...using javascript getting value from textbox when edit button is clicked and both controls are present in gridview control Hi All using javascript I want to get value from textbox when edit button is clicked and both controls that is texbox and button are present in gridview control . In Custom Control, Grid View Row Updated event not getting called.

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.

Leave a Reply