So I had to freeze the header bar of a gridview, and I did this using an asp:panel and CSS.
<asp:Panel ID="panelContainer" runat="server" Height="100px" Width="100%" ScrollBars="Vertical">
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Font-Size="small" CssClass="HeaderFreeze" />
.HeaderFreeze
{
position:absolute;
height: 40px;
top: 80px;
}
My only issue now is that the headers no longer stay the size of the column; is there any way to force the headers to keep the size of the columns (which may change due to the data in them).
Thanks