C# 具有固定标头的Asp.net gridview需要解决方案

C# 具有固定标头的Asp.net gridview需要解决方案,c#,css,asp.net,gridview,C#,Css,Asp.net,Gridview,我有gridview在面板下,它是垂直滚动的,但它与标题一起滚动,而且我必须停止标题移动,而我必须只滚动内容并保持标题固定 <div id=" " style="position:relative; height:150px; overflow:auto"> <asp:GridView ID="Extras" EnableViewState="true" runat="server" Width="100%" bAllowAdd="false

我有gridview在面板下,它是垂直滚动的,但它与标题一起滚动,而且我必须停止标题移动,而我必须只滚动内容并保持标题固定

  <div id=" " style="position:relative; height:150px; overflow:auto">
     <asp:GridView ID="Extras" EnableViewState="true" 
          runat="server" Width="100%" bAllowAdd="false" ShowFooter="true" bEnableBulkEdit="true" 
          AutoGenerateColumns="False">
          <HeaderStyle CssClass="gridViewHeader"/>
          <Columns>
          <asp:BoundField DataField="Days" HeaderText="Day" ReadOnly="true" ItemStyle-Width="8px" />            <asp:BoundField DataField="SupplierName" HeaderText="Supplier" ReadOnly="true" ItemStyle-Width="30px" />
          <asp:BoundField DataField="SupplierID" HeaderText="" ReadOnly="true" HeaderStyle-HorizontalAlign="Right"
                  Visible="false" />
                </Columns>
     </asp:GridView>
   </div> 

您的答案可能重复出现在这里您的问题似乎是重复或