Update gridview row rowupdating event in asp net
Edit Index Then i Row = 1 If i Row = Track Projects. Count Then Exit For lbl Text = Direct Cast(gv Track Projects. 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.
I want to stop users entering a value (integers) in DDL2 which is greater than that in DDL1.
The reason is we don't fill the values unless your are bound to a datasource control.
Data Bind() End Sub Its not your fault that the new values are empty.
Am I being clear, or am I being presumtuous in my undertsnading of the use of datasources? *I believe your asking us if you're precluded from binding a dropdownlist (for example) to a datasource from within a templatefield in your gridview, and if thats what your asking... And all I'm saying is that you YES can use another datasource.
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.