获取GridView中某行单元格中Label控件中的值

Posted on 2009-02-28 17:30  ymss  阅读(1255)  评论(0)    收藏  举报

在GridView1_RowDataBound(object sender, GridViewRowEventArgs e)事件中获取

Label控件的id=laid

((Label)(e.Row.Cells[1].FindControl("laid"))).Text 即可得到结果

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3