62,046
社区成员
发帖
与我相关
我的任务
分享
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList DropDownList1 = sender as DropDownList;
int index = (DropDownList1.NamingContainer as DataListItem).ItemIndex;
}
protected void DropDownList_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList drp = sender as DropDownList;
DataListItem item= drp.Parent.Parent // GridView 中对应的行
int id=item.ItemIndex;--获取事件所在行
//。。。。。。
}