Eureka, and phoooey....yeah, that was the problem, but now I have to solve another problem. I have a whole host of filters that do not work now since they rely on the auto postback feature in check boxes and drop down lists that I have. To String(), "ecylkows") = 1 Then i Col = i Chx 1 Track Projects. Data Bind() End Sub Its not your fault that the new values are empty.
or if things get to technical create a new thread and post the question. Bill, are you talking exclusively about using datasources?
If you have questions on how to convert boundfields to template fields you can always just search forums or just google it...
If so, how do you know the control id if it's dynamically created? I am having the same problem, and it's not a boundfield or template field problem either as I am using both. This magical function extracts values from the datacontrol fields and puts them in an IOrdered Dictionay.
Grid View has a method that is unfortunately protected called Extract Row Values.
I believe that databinding on every postback is the cause but that's not something that I can change right now, same goes with the autogeneratedcolumns setting. I'm not sure if I know what you mean about 2 way binding. If you meanam I using Bind instead of Eval in my HTML, then yes. And the result of your code is no different than my version or what I was doing before, which was just using the findcontrol method, and that just returns what was in the grid when it was first binded to the database on page load. Yes ok i think i know what you are probably doing wrong.
I'd like to know if there are any other ways to retrieve the new values? I have been using the web site successfully for just over a year, and I am presently using a Select button in the row to launch a detailsview, and I edit the database that way. Net a year and a half ago, and VB programmer forever before that, but I feel pretty confident in this large and powerful website I have created, but the users don't like the details view have expressed a desire to edit on the fly in the gridview. My user base has a hold of management's ear, and my management wants to dump ASP. This could be the straw that broke the camel's back - a person's job hangs in the balance - MINE!! If you are databinding in page_load then you need to only do it if(! Count - 1 i Col = i Chx If i Chx = 1 Then i Col = i Chx 1 Track Projects. Selected Then c = 1 If c = 1 Then str Params = "(Project Status = '" & Check Box List1. Text & "')" Else str Params &= " OR (Project Status = '" & Check Box List1. Auto Generate Edit Button = True Then i Col Date = 8 i Col Proj Stat = 10 End If Dim lbl Text As Label For i Row = 0 To Track Projects. Edit Index Then i Row = 1 If i Row = Track Projects. Count Then Exit For lbl Text = Direct Cast(gv Track Projects. you can always just turn the boundfield into a template field then put whatever control you want in templatefield then bind that control to any datasource you'd like (once again I prefer linq over all of the rest).