Gridview rowupdating oldvalues empty


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. If you don't use one of the Data Source controls, you are required to handle the Row Updating event. I confirmed this using Reflector: protected virtual void On Row Updating(Grid View Update Event Args e) { bool flag1 = base. Is Bound Using Data Source ID; Grid View Update Event Handler handler1 = (Grid View Update Event Handler) base. Get String("Grid View_Unhandled Even t", new object[] { this. How do I get the old values in a gridview row in the row_updating event? I'm using a sqldatasource control to populate the grid and want to write the update code in the Row Updating event. I can get the value of the first field using " Select Command="SELECT @Week Ending Week Ending , Project , Project ID , Category , Category ID ,isnull([1], 0) Sun ,isnull([2], 0) Mon ,isnull([3], 0) Tue ,isnull([4], 0) Wed ,isnull([5], 0) Thu ,isnull([6], 0) Fri ,isnull([7], 0) Sat from (select P.



If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.

I was just testing if I will get the changed value out of the textbox when updating with no luck.