title: How to have a Fixed Header in a Gridview?
body: <p>I have this current implementation from a friend of mind.  The project has a GridView as shown below</p>
  
  <pre><code>&lt;div ID="divGrid" runat="server"&gt;
  &lt;asp:GridView ID="docGrid" runat="server" AutoGenerateColumns="False" GridLines="None"
      DataSourceID="pagedDatasetSourceControl" OnRowDataBound="docGrid_RowDataBound" OnSelectedIndexChanging="docGrid_SelectedIndexChanging" DataKeyNames="ID"
      CssClass="gridTable" AllowSorting="True" AllowPaging="True" meta:resourcekey="docGridResource1"&gt;
      &lt;PagerSettings Visible="false"&gt;&lt;/PagerSettings&gt;
      &lt;Columns&gt;
          ..................
      &lt;/Columns&gt;
      &lt;RowStyle CssClass="tableRow"&gt;&lt;/RowStyle&gt;
      &lt;PagerStyle VerticalAlign="Bottom" HorizontalAlign="Right"&gt;&lt;/PagerStyle&gt;
      &lt;AlternatingRowStyle CssClass="tableRowAlt"&gt;&lt;/AlternatingRowStyle&gt;
  &lt;/asp:GridView&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Now, more that one (1) .cs classes using this GridView, then each implementation is different.  Then "ONE" of the .cs class implements a "scrolling" which is shown below.</p>
  
  <pre><code>this.divGrid.Attributes.Add("class", "fleft scroll");
  this.divGrid.Attributes.Add("style", "width:100%; height:250px;");
  </code></pre>
  
  <p>But the code above scrolls the header as well, so when I scroll down the header scrolls as well.  Is there a way to fix this issue by adding an "Attributes" in my .cs file for this class.</p>
  
  <p>Thanks</p>