Rowupdating new value carbon dating founded
I think my question was more to the point, if I have a datasource then I have to have boundfields, and this would preclude use of template fields? you're not using a single datasource in your templatefields.
Because as you can see from the html I posted, I am using boundfields and template fields in the same gridview, and I am reading and writing.
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.
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.
It'd be great if you could provide some sample code here. I am using the Row Updating event to programmatically update my database, but the new values are already gone by the time the Row Updating event is fired. I have found several forum postings detailing this but no one has posted their solution. Another way to get values out of the gridview is to put the interesting fields in Data Key Names, which can be a very ugly solution because the viewstate grows as a result of this. Find Control("lbl Project Status"), Label) Try If In Str(lbl Text. Then there are a couple more steps to make it to where you adding the selected value in the update) Yes, you are correct, I am not using any datasources for the gridview, but in the Itemtemplate and the Edit Item Template the Text parameter is set equal to a bind statement as follows (see the example further down where i ref a datasource for the ddl): Or in the case of the drop down list I am binding with the Selected Value parameter, but of course you can see I lied and am pointing to a different datasource completely for my list. Append("SELECT Project ID, Pcb Pn, Pcb Pn Rev, Change Number, Design Names, ECADdesigner Names, Pwb Engineer Names, Pwb Request Date, ECADstart Date, Due Date, Project Status, Job Charge Number, Percent Complete, Completion Date, Actual Start Date, Schematic Number, Schem Num Revision, Schem Ready Date, Layer Count, PCBtechnology, Stack Up, Thickness, Lead Free, Requester Comments, Product Manager") str SQL. Append(" WHERE" & str Params & " ORDER BY Due Date ASC") 'This is a subtitute for Private Sub Populate Publishers Grid View() from example code 'found at View Sorting Dim str My Conn As String = Configuration Manager. Selected Value Case 8 str Params = "(" & str Params & ") AND ((" & _ "(Right(Completion Date,4) '2005'))" & _ "OR (Completion Date is NULL))" Case 7 str Params = "(" & str Params & ") AND (Right(Completion Date,4) = '2007')" Case 6 str Params = "(" & str Params & ") AND (Right(Completion Date,4) = '2006')" Case 5 str Params = "(" & str Params & ") AND (Right(Completion Date,4) = '2005')" End Select str SQL.