Solved

DataGrid HeaderText Orientation

Posted on 2004-09-03
2
759 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
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.…
This video discusses moving either the default database or any database to a new volume.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

707 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

18 Experts available now in Live!

Get 1:1 Help Now