Rowupdating get new value

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. 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. 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...

Is Post Back) otherwise you'll wipe out the new values everytime before the updating event gets called. I've attached my code for what it's worth, but it will probably be too dificult to determine everything that I am doing. Is there a flag I can turn on or off when I am doing row updating so that I can detect and not rebind? 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). This is not necessarily a bad thing, we can still get all the functionality you can get from going from the codebehind. ♦ I prefer to use linq, but the fact is that when your using controls like the Grid View or Detials View etc..

Leave a Reply