title: Setting Checkbox ItemStyle ForeColor on ASP.Net DetailsView and GridView
body: <p>On an ASP.Net DetailsView and also on a GridView I noticed that the tick mark in CheckBoxes are a light gray (disabled) colour even though I set it as blue.</p>
  
  <pre><code>&lt;asp:CheckBoxField DataField="DayOfWeekMonday" HeaderText="Monday:" SortExpression="DayOfWeekMonday"&gt;
      &lt;ItemStyle ForeColor="Blue" /&gt;
  &lt;/asp:CheckBoxField&gt;
  </code></pre>
  
  <p>The same thing happens when the CheckBox is a TemplateField.</p>
  
  <pre><code>&lt;asp:TemplateField HeaderText="Monday:" SortExpression="DayOfWeekMonday"&gt;
      &lt;EditItemTemplate&gt;
          &lt;asp:CheckBox ID="CheckBoxEditDayOfWeekMonday" runat="server" Checked='&lt;%# Bind("DayOfWeekMonday") %&gt;' /&gt;
      &lt;/EditItemTemplate&gt;
  
      &lt;InsertItemTemplate&gt;
          &lt;asp:CheckBox ID="CheckBoxInsertDayOfWeekMonday" runat="server" Checked='&lt;%# Bind("DayOfWeekMonday") %&gt;' /&gt;
      &lt;/InsertItemTemplate&gt;
  
      &lt;ItemTemplate&gt;
          &lt;asp:CheckBox ID="CheckBoxItemDayOfWeekMonday" runat="server" Checked='&lt;%# Bind("DayOfWeekMonday") %&gt;' Enabled="false" /&gt;
      &lt;/ItemTemplate&gt;
  
      &lt;ItemStyle ForeColor="Blue" /&gt;
  &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p>I also tried this in the code-behind file.</p>
  
  <pre><code>Protected Sub CheckBoxItemDayOfWeekMonday_DataBinding(sender As Object, e As EventArgs)
  
      Dim theControl As CheckBox
  
      theControl = DetailsView.FindControl("CheckBoxItemDayOfWeekMonday")
      theControl.ForeColor = Drawing.Color.Blue
  
  End Sub
  </code></pre>
  
  <p>Is there a way to change it to blue like the rest of our fields and columns?</p>