解决这个问题GridView中操作DropDownList列获得其所在的行信息更好的方法
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList ddl=(DropDownList)sender;
DataControlFieldCell dcfc= (DataControlFieldCell)ddl.Parent;
GridViewRow gvr = (GridViewRow)dcfc.Parent;
GridView1.SelectedIndex = gvr.RowIndex;
//Label1.Text =GridView1.SelectedRow.Cells[0].Text;
}