[求助]如何用在DorpDownList的触发事件里触发另一个DorpDownList(请大家帮帮忙)
我界面上有两个DorpDownList控件都分别加了值进去了DropList.Items.Add()我现在想在触发一个 DorpList1的SelectedIndexChanged的同时DorpList2也触发我该怎么做
private void DropList1_SelectedIndexChanged(object sender, System.EventArgs e) {string bian = DropList1.SelectedItem.ToString(); int j ; j = DropList1.SelectedIndex; //得到我选的是下拉列表的第几个数 //我想把j传到DropList2_SelectedIndexChanged里面去再在DropList2_SelectedIndexChanged里 根据传进来j去触发函数getdb,我该怎么写
}
private void DropList2_SelectedIndexChanged(object sender, System.EventArgs e) { int t = DropList2.SelectedItem(j);//接受到传进来的j,找到是下拉框的那个数 getdb (1,t);//某个函数 }