• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2349
  • Last Modified:

ASP.Net GridView with horizontal scrollbar

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
rpm
Asked:
rpm
  • 2
1 Solution
 
Jacques Bourgeois (James Burger)PresidentCommented:
Enclose the GridView inside of a <div style="overflow-x:auto;width:800px">...</div> tag.
0
 
rpmAuthor Commented:
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
 
Johny BravoCommented:
0
 
rpmAuthor Commented:
I managed to make this solution work with  the addition of  Wrap="False" in the GridView
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now