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.
this is my grid view.
<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" >
<RowStyle BackColor="#FFFBD6" ForeColor="#333333" CssClass="HeaderFreez"/>
<Columns>
<asp:TemplateField HeaderText="School Code" >
<ItemTemplate>
<asp:Label ID="lblSchoolCode" runat="server"
Text='<%# Bind("SCHOOL_CODE")%>' />
<asp:TextBox ID="ID_TO_Update_All"
runat="server" Text='<%# Bind("ID")%>' Visible="false" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Class">
<ItemTemplate>
<asp:Label ID="lblClass" runat="server" Text='<%#
Bind("CLASS") %>' Visible="true"/>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Sec">
<ItemTemplate>
<asp:Label ID="lblSection" runat="server" Text='<%#
Bind("SECTION") %>' Visible="true"/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#990000" Font-Bold="True"
ForeColor="White" />
<PagerStyle BackColor="#FFCC66" ForeColor="#333333"
HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True"
ForeColor="Navy" />
<HeaderStyle BackColor="#00ba8b" Font-Bold="True"
ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>