具有修复标头的Asp.net gridview需要解决方案

时间:2014-12-30 09:19:35

标签: c# css asp.net gridview

我在面板下面有gridview它是垂直滚动但是它滚动了标题我也必须停止标题移动insted我必须只滚动内容并保持标题固定。

  <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> 

0 个答案:

没有答案