摘要: 1 在GridView获取单元格的值①BoundField绑定的内容gvUsers.Rows[1].Cells[2].Text(非编辑状态)TextBox txtCount = (TextBox)gvUsers.Rows[e.RowIndex].Cells[2].Controls[0];(编辑状态)然后通过txtCount.Text属性得到值e.RowIndex是编辑行的索引②模板列 绑定的内容(推荐使用label控件)Convert.ToInt32(((Label)gvUsers.Rows[e.RowIndex].FindControl("lbId")).Text);(( 阅读全文
posted @ 2012-04-15 21:18 朱文锋 阅读(1553) 评论(0) 推荐(0) 编辑