Rowupdating event in gridview in asp net example| insert an extra label into the Item Template Field (and sometimes also the edit Template Field)
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. 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. 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.