Solved

ASP.Net Gridview scrollbar top of the grid

Posted on 2014-02-21
3
622 Views
Last Modified: 2014-03-06
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
Comment
Question by:Idarac
3 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 39880661
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
 
LVL 1

Accepted Solution

by:
Uchihaitachi earned 500 total points
ID: 39881503
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
 
LVL 1

Author Closing Comment

by:Idarac
ID: 39911004
Had to dig around but I found what I needed there.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question