Solved

ASP.Net Gridview scrollbar top of the grid

Posted on 2014-02-21
3
607 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now