0

I have gridview under panel it is vertically scrolling but it scrolls with header also i have to stop header moving insted i have to scroll only content and keep header fixed.

  <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> 
  • possible duplicate of [GridView : How to make fixed Header Row](http://stackoverflow.com/questions/2205271/gridview-how-to-make-fixed-header-row) – صفي Dec 30 '14 at 09:22
  • your answer could be here http://stackoverflow.com/questions/263333/freezing-gridview-header-in-a-fixed-width-div – صفي Dec 30 '14 at 09:23
  • 1
    your question seem a dupe of http://stackoverflow.com/questions/263333/freezing-gridview-header-in-a-fixed-width-div or http://stackoverflow.com/questions/2205271/gridview-how-to-make-fixed-header-row or http://stackoverflow.com/questions/2405265/fixing-the-header-row-in-gridview or http://stackoverflow.com/questions/2413564/given-up-on-gridview-fixed-header – alessandro Dec 30 '14 at 09:23

0 Answers0