aspx
<asp:CommandField ShowSelectButton="True" ItemStyle-Wrap="false" />
.cs
protected void Gridview1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
{
int i = e.NewSelectedIndex;
dropdownlist1.Text = GV.Rows[i].Cells[1].Text;
}
单击选择后,将 GV.Rows[i].Cells[1].Text 赋值给dropdownlist1 ,在次选定dropdownlist1的其它值 时,一值保持 GV.R[/b]ows[i].Cells[1].Text的值 ,无法在dropdownlist1选定其它值