在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=.....

相关文章: