摘要:
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 阅读全文