Prabu Spark

Prabu Spark

  • NA
  • 124
  • 204.3k

how to add horizontal scrollbar to top of panel in div?

Dec 3 2013 2:36 AM
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>


Answers (3)