| Author: Vivek 11 Oct 2008 | Member Level: Gold | Rating: Points: 4 |
Refer these
http://www.codeproject.com/KB/aspnet/dgcheckboxcolumn.aspx
http://www.dotnetspider.com/forum/151536-gridview-if-i-select-checkbox-selectall-all-records-should-be-inserted-into-database.aspx
http://www.dotnetspider.com/forum/162743-GridView-with-SelectAll-Checkbox.aspx
http://www.dotnetspider.com/forum/144589-how-use-checkbox-gridview-Using-ASP-net.aspx
|
| Author: Athira Appukuttan 13 Oct 2008 | Member Level: Diamond | Rating: Points: 4 |
Try like this.. Button_Click:
foreach(gridviewrow gvr in gridview1.rows) { checkbox chk=(checkbox)e.findcontrol("checkboxname"); if(chk!=null) { if(chk.Checked) { String RowIs=gridview1.datakeys[e.RowIndex].value.Tostring(); //Like this u can get selected rows details } } }
|