GrivdView 模板列 自动绑定列 后台取值

对于自动绑定列,就GridView1.Rows[e.RowIndex].Cells[第几列].Text就取到值了。
对于模板列,也就是自定义列,要Label l1 =(Label)GridView1.Rows[e.RowIndex].FindControl("Label1");l1.Text;
才能取到值。
posted @ 2011-11-14 10:20  草珊瑚  阅读(273)  评论(0)    收藏  举报