Solved

ASP.Net Gridview scrollbar top of the grid

Posted on 2014-02-21
3
644 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

632 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