I Insert Mode on a detail level I have two dropdownlists and textbox. When a selection is made in the dropdownlist I cascade populate the other list but also need to populate the textbox with relative data.
In the OnIndexChanged event I cannot find access to the textbox item for update.
How do I go about accomplishing such as this?
private void list_SelectedIndexChanged(object sender, System.EventArgs e)
GridEditableItem editedItem = (sender as DropDownList).NamingContainer as GridEditableItem;
DropDownList ddList = editedItem["AgencyId"].Controls as DropDownList;
"select AgencyId, AgencyShort from cimt_lu_agencies a, cimt_v_resources r where r.agency = a.agencyshort and r.name = '" +
"ResourceId"].Controls as DropDownList).SelectedItem.Text + "'";
ddList.DataSource = SqlDataSource8;