摘要: 1.grid判断查看哪一行的CheckBox被选中 foreach(GridViewRow row in this.StudentGridView.Rows) { Control ctrl = row.FindControl("CheckBox"); if ((ctrl as CheckBox).Checked) { TableCellCollection cell = row.Cells; string studentCode = cell[1].Text; } }2.递归// 清空控件内容private void ClearText(Control ctr) { for 阅读全文
posted @ 2012-02-27 14:36 DODUI 阅读(186) 评论(0) 推荐(0) 编辑