Solved

GridView Column Sizes

Posted on 2007-11-30
2
250 Views
Last Modified: 2013-11-26
In VS 2005 and ASP.NET 2.0, I have a test app that displays data in agrid view. With no other options set on the grid view control, I'm finding that columns are only as wide as the header text and any data is wrapped within that width. What I'd like to be able to do is set each column width programmatically and not have the text not wrap so that each row height is the same. If I want to see all the data text in a particular column, I'd like to be able to click and drag the column divider to widen it to see more text, or better yet double click on the divider to set the column to the width of the longest data text. Is any or all of this possible and, if so how? TIA

I'm keeping the points low so that I don't waste a lot of them only to be told it can't be done, but I'll be sure to reward anyone who can provide me with a workable solution.
0
Comment
Question by:davev
[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 Comments
 
LVL 10

Accepted Solution

by:
Alpesh Patel earned 50 total points
ID: 20384773
you are right on your descisson. you cannot do this stuff in web application like standalon or c/s application.
0
 

Author Closing Comment

by:davev
ID: 31412012
I was afraid that might be the case, but thanks for verifying it for me anyway.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 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