[求助]如何获取gridview当前行某一列的值。
protected void GridView1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
{
GridViewRow row = GridView1.Rows[e.NewSelectedIndex];
if (row.RowState == DataControlRowState.Selected)
{
this.Label3.Text = row.Cells[1].Text.ToString();
this.txt1.Text ="你好";
}
}
但txt1中都没有值,好象都没有触发这事件,为什么?