title: How to enable a checkbox in Gridview only when it's in the Edit mode?
body: <p>This is how I have my checkbox column currently:</p>
  
  <pre><code>          &lt;asp:TemplateField HeaderText="Hide/Show" ItemStyle-HorizontalAlign="Center" SortExpression="Hide_Show"&gt;
                  &lt;ItemTemplate&gt;
                      &lt;asp:CheckBox ID="HideShowChk" runat="server" Checked='&lt;%# Bind("Hide_Show") %&gt;' /&gt;
                  &lt;/ItemTemplate&gt;
              &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p>I have no code in my code behind because it's not necessary. Basically, a user can check or uncheck it, but it won't be reflected in the database unless I actually go into Edit mode, check or uncheck it, and then hit update so that the changes ARE reflected in the database.</p>
  
  <p>Is there a way to have it so that the checkbox is "disabled" or anything of that sort while it's not in edit mode?</p>