Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
Hi sir,
  Tell me the steps to add horizontal scrollbar to top of panel in div tag. I am using gridview having 25 columns , i got scroll bar at the bottom, my question is how to add horizontal scrollbar at the top of the gridview. I tried the below code, but i did not get the solution, Kindly give me the solution for this problem.

Default.aspx:

Code1:
**********

<div style="overflow-x:auto;overflow-y: auto; width:1200px;">
    <asp:GridView ID="GridView1" runat="ser
ver" AutoGenerateColumns="False">
  </asp:GridView>
    </div>


Code2:
**********

<div style="overflow:scroll; width:1200px;">
    <asp:GridView ID="GridView1" runat="ser
ver" AutoGenerateColumns="False">
  </asp:GridView>
    </div>
Posted

1 solution

Refer- Re: Add horizontal scrollbar to top of panel[^].
Quote:

how about scrolling a div that the GridView could be kept in? here's what I'm trying to get at:
http://www.switchonthecode.com/tutorials/using-jquery-slider-to-scroll-a-div

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900