Getting the new value in gridview rowupdating event

29 Apr

I'm in a similar boat...almost the same conditions. NET 1.1 that the datagrid had something called a Currency Manager...it looks like the object still exists in 2.0. This is all started from the Data Tutorial series found on the website. tabid=63 Maybe I should look into using the Get Products method with an Object Data Source and see how that works. Now I can get the Bound Field newvalues with no problem in the Row Updating event. I've deleted the datasource and gridview and started again from scratch, but I still get the same problem. 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.

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.

That probably needs to be linked into the Object Data Source along my Get Products, as well as the Add Products, and Delete Product methods. Problem is, I don't have the time at the moment yet. And back to my original question, how to I get the new value? I have a gridview, go into edit mode, enter a value in a textbox, then click update.

I do have a Update Products method in my business logic class which is ties into the data class. Once I got that in place, the dropdownlist populated. I haven't had many problems with gridview, but this one has thrown me. Enabled = allow Admin Edit End If Dim price As Text Box = CType(e. Read Only = Not allow Admin Edit End If //some more columns enabled/disabled too End If 0 Then Return If e.

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.