Solved

GridView Column Sizes

Posted on 2007-11-30
2
237 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
2 Comments
 
LVL 10

Accepted Solution

by:
Alpesh Patel earned 50 total points
Comment Utility
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
Comment Utility
I was afraid that might be the case, but thanks for verifying it for me anyway.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now