模板列和绑定列的 取值方法
在protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)if (e.Row.RowType == DataControlRowType.DataRow) 事件下
模板列
Label lb = (Label)e.Row.FindControl("Label3")
取值:lb.text=....
绑定列
e.Row.Cells[1].Text=.....
在protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)if (e.Row.RowType == DataControlRowType.DataRow) 事件下
模板列
Label lb = (Label)e.Row.FindControl("Label3")
取值:lb.text=....
绑定列
e.Row.Cells[1].Text=.....