I am trying to setup a dynamically changing edit template for a GridView Table.
My progress so far is I have a functioning GridView with Editing enabled. I have the template setup to display a handful of textboxes and two dropdown lists. The first dropdown is connected to a Sql Datasource and is populated depending on which User is logged in. That works, no problem. What I need is to make the other dropdown populate depending on what was selected in the first dropdown.
So,... if DropDown1.SelectedValue = "ProjectA" then DropDown2.Items = {"Task1", "Task2", "Task3"}
Problem is, in the code behind I can't seem to find the selected value of DropDown1. DropDown1 isn't even a recognize control since it's part of the edit template. How would I go about finding the selected value of a dropdown in the edit template? Would I have to dynamically generate the whole edit template for the code to recognize the dropdown?
I realize this is a bit of an obscure and possibly unnecessary question, so I'm not looking for answers as much as advice. Any help would be appreciated, thanks.
