title: Grid view static header in asp.net
body: <p>I have a grid view i want a fixed header without style of overflow=scroll. that is when their is a more records the grid view scroll by default.now how i can show fixed header.</p>
  
  <p>this is my grid view.</p>
  
  <pre><code>          &lt;asp:GridView ID="gvStd" runat="server" DataKeyNames ="ID" AutoGenerateColumns="False" OnRowDataBound="gvStd_RowDataBound" 
              CssClass="table" EnableViewState="False" EmptyDataText="Such Not Found!"
              CellPadding="4" ForeColor="#333333" GridLines="None" OnRowCommand ="gvStd_RowCommand"  BorderStyle="None" &gt;
              &lt;RowStyle BackColor="#FFFBD6" ForeColor="#333333"  CssClass="HeaderFreez"/&gt;
  
  
              &lt;Columns&gt;
  
                &lt;asp:TemplateField HeaderText="School Code" &gt;
  
                      &lt;ItemTemplate&gt;
                          &lt;asp:Label ID="lblSchoolCode" runat="server" 
            Text='&lt;%# Bind("SCHOOL_CODE")%&gt;'  /&gt;
                             &lt;asp:TextBox ID="ID_TO_Update_All"  
                 runat="server" Text='&lt;%# Bind("ID")%&gt;'  Visible="false" /&gt;
                      &lt;/ItemTemplate&gt;
  
                  &lt;/asp:TemplateField&gt;
                  &lt;asp:TemplateField HeaderText="Class"&gt;
                      &lt;ItemTemplate&gt;
                          &lt;asp:Label ID="lblClass" runat="server" Text='&lt;%# 
                Bind("CLASS") %&gt;'   Visible="true"/&gt;
  
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateField&gt;
                  &lt;asp:TemplateField HeaderText="Sec"&gt;
  
                      &lt;ItemTemplate&gt;
                          &lt;asp:Label ID="lblSection" runat="server" Text='&lt;%# 
              Bind("SECTION") %&gt;'   Visible="true"/&gt;
  
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateField&gt;
       &lt;/Columns&gt;
              &lt;FooterStyle BackColor="#990000" Font-Bold="True" 
         ForeColor="White" /&gt;
              &lt;PagerStyle BackColor="#FFCC66" ForeColor="#333333" 
           HorizontalAlign="Center" /&gt;
              &lt;SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" 
         ForeColor="Navy" /&gt;
              &lt;HeaderStyle BackColor="#00ba8b" Font-Bold="True" 
            ForeColor="White" /&gt;
              &lt;AlternatingRowStyle BackColor="White" /&gt;
          &lt;/asp:GridView&gt;
  </code></pre>