Solved

GridView Column Sizes

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

810 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