Solved

GridView Column Sizes

Posted on 2007-11-30
2
246 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: 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

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

733 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