DataGrid HeaderText Orientation

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

It would be:


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.

Question by:alausted
LVL 10

Accepted Solution

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:



Author Comment

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.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

896 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

14 Experts available now in Live!

Get 1:1 Help Now