Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DataGrid HeaderText Orientation

Posted on 2004-09-03
2
Medium Priority
?
779 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 375 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Loops Section Overview
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

916 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