title: Uncheck the checkbox within the gridview template field from server side
body: <p>I'm trying to uncheck all the checkbox present in the Gridview with server side button click. I'm trying to execute the below code </p>
  
  <pre><code>    foreach (GridViewRow row in GridView1.Rows)
      {
          if(row.RowType == DataControlRowType.DataRow)
          {
             CheckBox chkrow = (CheckBox)row.FindControl("ChbGrid");
             if(chkrow.Checked)
             {
              chkrow.Checked = false; //code not reaching here eventhough checkbox is selected
             }
          }
      }  
  </code></pre>
  
  <p>The chkrow.Checked is false for every row in the gridview eventhough some of the checkbox are selected. Any idea on why this might be happening ? </p>