title: Forcing Gridview Header font bold to false in ASP.NET
body: <p>I am having a problem in forcing gridview header to "unbold". I tried using the Gridview parameter for header font style but it doesn't really work. Unfortunately, all other methods I tried did not work. </p>
  
  <ol>
  <li>Using CSS Class</li>
  </ol>
  
  <pre class="lang-html prettyprint-override"><code>.headercell
  
        {
  
         font-weight: normal;
  
         font-size: 12px;
  
         font-family: "Franklin Gothic Book"
  
        }
  </code></pre>
  
  <ol start="2">
  <li><p>Programmatically using Row Data Bound</p>
  
  <pre><code>If e.Row.RowType = DataControlRowType.Header Then
      For i = 0 To GridView1.Columns.Count - 1
          GridView1.Columns(i).HeaderStyle.Font.Bold = False
      Next
  End If
  </code></pre></li>
  </ol>
  
  <p>What would be the most efficient way to set the gridview header to unbold?</p>
  
  <p>UPDATE (ASPX CODE):</p>
  
  <pre><code>   &lt;asp:GridView ID="GridView1" runat="server" BackColor="White" 
       BorderColor="#333333" BorderStyle="Solid" BorderWidth="2px"
       CellPadding="3" Font-Bold="false" Font-Overline="False" 
       Font-Size="Small" Font-Underline="False" HtmlEncode="false"&gt;
        &lt;RowStyle ForeColor="#000066" Height="23px" HorizontalAlign="Center" 
           VerticalAlign="Middle" /&gt;
        &lt;FooterStyle BackColor="White" ForeColor="#000066" /&gt;
        &lt;PagerStyle BackColor="White" ForeColor="#000066"
           HorizontalAlign="Left" /&gt;
         &lt;SelectedRowStyle BackColor="#669999" Font-Bold="True"
           ForeColor="White" /&gt;
          &lt;HeaderStyle BackColor="#002851" Font-Bold="False" 
            CssClass="headercell" ForeColor="White" HorizontalAlign="Left"
            VerticalAlign="Middle" /&gt;
        &lt;Columns&gt;
         &lt;asp:TemplateField HeaderText="STATUS" ShowHeader="False"
            Visible="True"&gt;
            &lt;ItemTemplate&gt;
             &lt;asp:Button ID="Btn1" runat="server" CommandArgument='&lt;%#
             DataBinder.Eval(Container, "RowIndex") %&gt;'
             CommandName="Btn1_cmd"&gt;                                                                    
  
     &lt;/ItemTemplate&gt;
    &lt;/asp:TemplateField&gt;
    &lt;/Columns&gt;
   &lt;/asp:GridView&gt;
  </code></pre>