Rowupdating e oldvalues
A friend asked me to help him out on this and frankly it has me completely stumped as well. I have a Grid View control and use old style manual binding with a Data Source property and invoke the Data Bind() method. This will lead to problems like "Grid View does not show updated values", "Grid View looses values changed by user". In your Page_load, this is typically only inside a block where you check to make sure that Page_Load is not being called during a post-back call.For a while now I’m trying to figure out why my method, triggered by the Grid View.
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.
In my case this was happening because I was binding to a List of custom objects.
Note A common mistake that a lot of people do is that they perform a databind each and every-time the Page_Load method is called.
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.
For example a Sql Data Source, which is automatically added to your Web Form if you drag-n-drop your way around Visual Studio 2005.
New Values -- it will have all the values, as does e. There are two in that event so data source controls can differnitate bewteen the two.