title: Fixed Header Grid View ASP.NET
body: <p>I gone through lots of examples for fixed header grid view, and tried few options using div and java scripts. the one i didnot work from the example,  is there anything i miss here.</p>
  
  <pre><code> CSS 
  .gridViewHeader
  {
       background-color:Navy;
      color:blue;
      font-size:12px;
      font-weight:bold;
      position:relative;
      z-index:10;
     top:expression(&lt;%= gv.HeaderRow %&gt;.offsetParent.scrollTop-2);
  }
  
  design source
  &lt;table&gt;
  &lt;tr&gt;
              &lt;td&gt;
                  &amp;nbsp;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
      &lt;div&gt;
          &lt;asp:GridView ID="gv" runat="server" CellPadding="4" PageSize="50" RowHeaderColumn="True"
              AllowPaging="True" BackColor="White" BorderColor="#3366CC" BorderStyle="None"
              BorderWidth="1px" CssClass="gridViewHeader"&gt;
              &lt;PagerSettings Mode="NumericFirstLast" /&gt;
              &lt;PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" VerticalAlign="Middle" /&gt;
              &lt;RowStyle BackColor="White" ForeColor="#003399" BorderStyle="Inset" HorizontalAlign="Center"
                  VerticalAlign="Middle" Wrap="False" /&gt;
              &lt;SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" /&gt;
          &lt;/asp:GridView&gt;
      &lt;/div&gt;
          &lt;asp:HiddenField ID="hiddenfield1" runat="server"  /&gt;
      &lt;/asp:Content&gt;
  </code></pre>