Rowupdating oldvalues newvalues
Right now you must be asking yourself how can you get those dictionaries filled out just as if you were bound to a Datasource control?
The good news is you CAN do it(this is what this blog post is all about right? This is probably one of the worst things you can do.
After you've created a layout with a data control of your choice and eventually bound them to some datasource, you almost always want to get that data back out of them(and why wouldn't you, its your data).
One thing you'll learn about developing webpages is that its like petting a porcupine (yikes).
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.
Regards, Steven Cheng Microsoft Online Support Get Secure! Thus, we may have to use the original means that extract the value from Grid View Row's Cell control collection like what we done in 1.1 with datagrid... Please post the code for your Page_Load method and the that handles your Update (your C# code) so we can have a better look at what's going on. Please give some references and/or details of how to. This wipes out the data provided by the user during editing (editing happens after the page load). If you reset the Data Source at this stage, your values for updating will be lost. I actually don't know how to write the Row Updating function, I just found it from the internet, and so of course it's not working. Please give some references and/or details of how to. Ok what's happening is that you are binding the data source for the Grid View every time a postback occurs in the Page_Load method.Unfortunately these dictionaries are only filled out if you are bound to a datasource control :(.So that means when you bind to some raw collection and hook up to the Data Source property then call databind, if you try to handle the delete or update events these dictionaries are going to be empty.