Gridview rowupdating e newvalues is empty Yahoo video xxx
But for this demo, I’ll show you the simple version, that also doesn’t work 🙂Let’s bind the data to our Grid View and have it autogenerate our columns, as well as an edit button.When we edit a row in our Grid View and press the “Update” button, at some time it’s received in the Row Updating method.But as I noted in the comments in that method, some collections that should contain the columns (names, old values and new values) are always empty. And the Row Updated method is never even touched!!! NET Forums that I need to use a Data Source control.
Upon modifying the values in textbox which come from Edit Item Template , the new values dont show in the event handler rowupdating(), instead I get the values which appear when the page was rendered.
We'll research it, and do our best to find a solution. Hello David, Thank you for informing us of your results.
When you bind the ASPx Grid View control explicitely in the Page_Init event handler, these changes are reflected on loading the control's Post Data.
hello my problem was that my gridview editable controls heep their old values. this is due to the grid view binding in the page_load method after every post back.
So what you need to do is store the data source (maybe in Session) and only bind rebind the data when you absolutely need to (Like during the Is Not Post Back) Do you understand?
Count; // string array to hold grid view column names.