GridView中添加CheckBox并返回选中行_[Asp.Net教程]                                           
一:添加CheckBox 
  
      
           
           
           
              
               
           
           
               
           
           
               
           
           
               
           
           
               
           
      
  二:查看哪一行的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; 
                 } 
         }