Hello,
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?
Thank you,
Steve O...
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?
Thank you,
Steve O...
private void list_SelectedIndexChanged(object sender, System.EventArgs e)
{
GridEditableItem editedItem = (sender as DropDownList).NamingContainer as GridEditableItem;
DropDownList ddList = editedItem["AgencyId"].Controls[0] as DropDownList;
SqlDataSource8.SelectCommand =
"select AgencyId, AgencyShort from cimt_lu_agencies a, cimt_v_resources r where r.agency = a.agencyshort and r.name = '" +
(editedItem[
"ResourceId"].Controls[0] as DropDownList).SelectedItem.Text + "'";
ddList.DataSource = SqlDataSource8;
ddList.DataBind();
}