Rowupdating newvalues is empty

It gets into the "On Row Updating" event just fine, but there are no New Values or Old Values. Regarding on the Grid View control's Row Updating event problem, it is the expected behavior because when we do not associate Grid View(or other ASP.NET 2.0 databound control) with Data Source control, it won't automatically query and fill the parameters collection of the updating/deleting/... In such cases, we need to manually extract the field values from the Template control. In that case you can do it using the Extract Values From Cell method to make the New Values collection yourself.

rowupdating newvalues is empty-50

It looks like your source code is pretty close to the MSDN source code here.

We are working on developing a methodology to port our old but good VB6 App to ASP and I am on a learning curve here so I am sure I have missed something (hopefully! This is just exploration for now so I can develop all the tools for the job at hand.

Now on clicking update link it fires Row Updating method and there i found e.newvalues.count = 0. Thank you for taking interest in this matter Allen.

Yes, it does not work for me, however as you see I am using dynamically formatted grids so maybe it will work for you - if you have your grid defined in the Let me know R e.newvalues still looking at the e.oldvalues collection in gridview rowupdating event I am using 2.0.

Here is some relevant code - this is the Grid in - nothing specified so if any changes occur in the underlaying DB no aspx changes will be required (the idea that is being tested) That should give you back a valid Values collection.

Leave a Reply