hai friend's
i have a gridview ,i bind the data's in gridview by using DataBinder, so when i going for dalete option , i using the checkbox to check that and using the find control option
to find the selected row and to delete .n that following r the code i used
note: chk is the checkbox id.
for (i=0;i<gridview1.rows.count;i++)
{
gridview grd = (gridview).gridview1.rows[i];
checkbox cek = (checkbox)grd.fincontrol("chk");
if(cek.checked)=true)
{
string del = cek.cells[1].Tostring();
the as usual connection and the delete query
my problem is that while cheking the cells it execute the error ,
help me guys