Solved

DataGrid HeaderText Orientation

Posted on 2004-09-03
2
770 Views
Last Modified: 2012-06-27
Is it possible to alter the orientation of the Header Text in a DataGrid?  What I'm referring to is a feature that Microsoft Excel offer.  When text is entered into a cell, the user can format that cell, selecting the alignment, and rotate the text 90, 45, -90 degrees, etc....  The reason I'd like to do this is to make the text vertical to shrink the width of the column.  

Instead of:
COLUMN 1

It would be:
C
O
L
U
M
N

1

The question is: Is it possible?  If so and you can provide some example, I'll increate the points.  My hunch is that it's not possible or more trouble then it's worth.

0
Comment
Question by:alausted
2 Comments
 
LVL 10

Accepted Solution

by:
jnhorst earned 125 total points
ID: 11978482
How much willl you increase the points??? :-)

Set AutoGenerateColumns to false, specify the column manually and set the HeaderText to:

C<br>O<br>L<br>U<br>M<br>N<br>1

John
0
 

Author Comment

by:alausted
ID: 11999741
Ahhh, very good!  I can work with that idea.

Since it was relatively easy and not exactly what I was looking for, I'll bump it up but not WAY UP.  125 points awared to jnhorst.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

821 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