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.
The problem is, I’d very much like to do so, if ASP. But I can’t set a Data Source property or anything on the Sql Data Source!!! I probably have to read the cells on the Grid View of the selected row, find the controls, get the values from those and insert those into my Data Set.
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.
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.
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.
The Grid View is bound to a strongly-typed collection, derived from Collection Base, through the control's datasource property at runtime. The Grid View is bound to a strongly-typed collection, derived from Collection Base, through the | control's datasource property at runtime. I don't recall seeing it emphasized in the documentation, and these kinds of dependencies create annoying bugs.
How do I grab the new values from these textboxes and proceed further?
Last Change: More Information (@jwiscarson) I’m sorry, I was in hurry. In that project, the users could select 2 categories, enter a search string and the result will show in a Grid View. Here is my problem, if the "admin user" click on edit, change the value of the cell and execute the update, the value would not changed in the Hoo boy.
I would like to confirm that this is a problem with the released version of NET2, so I can stop beating my head against the wall trying to get the Grid View to work "as advertised". As for the Grid View control doesn't correctly populate the Old Values or New Values parameters collection when performing udpdate operation, I think it is likely caused by some certain setting in the Grid View control... | | I would like to confirm that this is a problem with the released version of NET2, so I can stop beating my head against the wall | trying to get the Grid View to work "as advertised". - Mark Thanks for your followup Mark, Frankly speeking, I do agree with you that this is a big limitation since I haven't noticed this before until you mentioned this... You didn't ask this in your question, but you've written some smelly code here.I'll try to address your question, but I'm also going through some of the other problems here.Without seeing your markup, it's hard for me to tell if you've created .Although this isn't as big of a problem when you're referencing the text from web controls, getting in the habit now will prevent you from serious headaches and inefficiently checking for null and empty later. NET 4.0, you should have access to event, you need to pull the new values out of the front-end controls, and then re-bind your data. When I click on the edit button the update and cancel button appear.