Solved

ASP.Net GridView with horizontal scrollbar

Posted on 2014-10-03
4
1,955 Views
Last Modified: 2014-10-13
Hi,

I have developed a page which creates a gridview object with the number of columns determined at runtime.

The number of columns can get very large, and in this case the columns are all made narrow to fit the page, with a great deal of wrapping of text, making the table hard to follow.

Is there a way to apply a horizontal scrollbar to the gridview, so that the columns are all shown in full, and the user scrolls right to see the full width of the table?

Thanks!
0
Comment
Question by:rpm
[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
  • 2
4 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 40359698
Enclose the GridView inside of a <div style="overflow-x:auto;width:800px">...</div> tag.
0
 
LVL 1

Author Comment

by:rpm
ID: 40359715
I tried that, but the table inside is still rendering at the page width, rather than making itself sufficiently wide and then scrolling left/right
0
 
LVL 8

Expert Comment

by:johny_bravo1
ID: 40364125
0
 
LVL 1

Author Closing Comment

by:rpm
ID: 40377626
I managed to make this solution work with  the addition of  Wrap="False" in the GridView
0

Featured Post

Containers and Docker for Everyone

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

707 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