sender, EventArgs e) { DropDownList drp = sender as DropDownList; // 触发事件的 DropDownList GridViewRow row = drp.NamingContainer as GridViewRow; // GridView 当前行 row.Style.Add(HtmlTextWriterStyle.BackgroundColor, drp.SelectedValue); int CurRow = row.RowIndex; } 相关文章: