Solved

ASP.Net Gridview scrollbar top of the grid

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

738 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