Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 693
  • Last Modified:

ASP.Net Gridview scrollbar top of the grid

I have a asp:gridview on the website I am developing. The amount of data can be very large and can extend the gridview both horizontally and vertically. The horizontal and vertical are both dynamic in size.

Can I set the size of the grid so it always fits in the screen no matter what the size of screen and then set the vertical scroll and the horizontal scroll.

Here is what I have sio far

    <div id="divGrid" style="width:100%; overflow:auto;">
        <asp:GridView ID="grdExport" runat="server" AutoGenerateColumns="False"
            EmptyDataText="No records found.">
            <AlternatingRowStyle BackColor="#C4C4FF" />
            <HeaderStyle BackColor="#000066" ForeColor="White" />
        </asp:GridView>
    </div>
0
Idarac
Asked:
Idarac
1 Solution
 
Bob LearnedCommented:
I see you have a <div> with overflow:auto.  Is that not working as required?  It might be that you haven't specified a height value for the <div>.
0
 
UchihaitachiCommented:
Sounds nothing seriously wrong with your code. Or you may apply some .NET UI GridView. I've got something related to the GridView Scroll. Hope it can be something insightful.
0
 
IdaracAuthor Commented:
Had to dig around but I found what I needed there.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now