title: how to bind checkbox value from datatable in gridview
body: <p>I need to figure out how to bind a CheckBox value in a GridView, I have written CheckBox.Checked= DataBinder.Eval(Container.DataItem, "IsSubscribed") in GridView, but the CheckBox is always checked, even when <code>IsSubscribed</code> is false. </p>
  
  <p>I have bound the grid in <code>Page_Load</code>, before the page has posted back. Here is my code:</p>
  
  <pre><code>&lt;asp:TemplateField HeaderText="Select"&gt; 
       &lt;ItemTemplate&gt; 
          &lt;asp:CheckBox 
              ID="chkIsSubscribed" runat="server" HeaderText="IsSubscribed" 
              Checked='&lt;%# DataBinder.Eval(Container.DataItem, "IsSubscribed") %&gt;'/&gt;  
       &lt;/ItemTemplate&gt; 
  &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p>Thanks.</p>