You can do this by setting AutoPostback to true on your first dropdownlist
and handling the OnSelectedIndexChanged event. Within this code, you can
update the other dropdownlist. Here is some example code that I used to
update label controls based on dropdownlist. You should be able to do the
same with your secondary DDL:
protected void DropDownListItem_SelectedIndexChanged(object sender,
EventArgs e) {
int itemID =
int.Parse(((DropDownList)GridViewMain.FooterRow.Fi ndControl("DropDownListItem")).SelectedValue);
item = new ItemData().Get(itemID);
((Label)GridViewMain.FooterRow.FindControl("LabelC ode")).Text =
item.Code;
((Label)GridViewMain.FooterRow.FindControl("LabelD escription")).Text =
item.Description;
((Label)GridViewMain.FooterRow.FindControl("LabelN ote")).Text =
item.Note;
}
Hope this gets you going in the right direction.
--
Andrew Robinson
http://blog.binaryocean.com
"sck10" <sc***@online.nospam> wrote in message
news:eU**************@TK2MSFTNGP05.phx.gbl...
Hello,
I am using a GridView with 2 dropdown boxes. I would like to update the
second dropdown based on the first dropdown selection. Any help with this
would be appreciated.
Thanks in advance, sck10