asp.net gridview
        Posted  
        
            by arjun
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by arjun
        
        
        
        Published on 2010-01-22T07:18:57Z
        Indexed on 
            2010/06/05
            10:02 UTC
        
        
        Read the original article
        Hit count: 514
        
ASP.NET
I have a gridview which has bound fields and a template field for checkbox.I wrote a code for deletion of records as per checking checkboxes.My problem is
HtmlInputCheckBox chk;
     foreach(GridViewRow dr in dgvdetails.Rows)
        {
            chk = (HtmlInputCheckBox)dr.FindControl("ch");
            chk.Checked = true;
            if (chk.Checked)///       **here checkbox is not checked even if I'm check it**
            {
                pl.id = int.Parse(chk.Value);
                bl.deletedgvdetails(pl);
              }
           }
© Stack Overflow or respective owner