title: Checkbox OnCheckedChanged not firing when checkbox is checked through JQuery
body: <p>I used this code to be able to check the checkbox on gridview row select which is working. However, the code behind is not being run unless I click the actual checkbox. Any ideas?</p>
  
  <p>ASPX Code:          </p>
  
  <pre><code>&lt;asp:GridView runat="server" ID="gvReconciledGroups" AutoGenerateColumns="false" EmptyDataText="No Reconciled Items to Batch" DataKeyNames="GroupID"&gt;
      &lt;Columns&gt;
          &lt;asp:TemplateField&gt;
              &lt;ItemTemplate&gt;
                  &lt;asp:CheckBox runat="server" ID="cbFinalise" AutoPostBack="true" OnCheckedChanged="cbFinalise_OnCheckedChanged" ClientIDMode="Static" /&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
          &lt;asp:BoundField HeaderText="GroupID" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" DataField="GroupID" /&gt;
          &lt;asp:BoundField HeaderText="Date" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" DataField="Date" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="100px" /&gt;
          &lt;asp:BoundField HeaderText="Cashier" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" DataField="Cashier" ItemStyle-Width="100px" /&gt;
  </code></pre>
  
  <p>Script:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(function () {
          $('tr.gridview_row,tr.gridview_alternatingRow').click(function () {
              var checked = $(this).find('input[id*=cbFinalise]').prop('checked');
              $(this).find('input[id*=cbFinalise]').prop('checked', !checked);
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>Code Behind:</p>
  
  <pre><code>public void cbFinalise_OnCheckedChanged(Object sender, EventArgs e)
  {
      //Calculations
  }
  </code></pre>