I ran into a situation this morning where the Row Updating event of a Grid View kept insisting there were no entries in either the Old Values or New Values dictionaries. not-for-mail | Xref: TK2MSFTNGXA02gbl microsoft.public.dotnet.framework.aspnet:372150 | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet | | I ran into a situation this morning where the Row Updating event of a Grid View kept insisting there were no entries in either the | Old Values or New Values dictionaries. Two things: 1) I think this needs to be documented better. | | 2) I think it's weird that the "value" capability is tied to the parameters collection. That | way it'd work with both types of data binding.
To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.A common way to use these collections is to HTML-encode the values supplied by the user before they are stored in the data source. I am binding to a custom datasource in the code behind.Please help me with writing a Row Updating function in C#, I don't know how to grab the current field's value and also get the old value for one of keys (which is Project Name for editing) of the selected row. the idea wa to don't allow binding the grid view after a post back. 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.