Is it possible to change the text orientation for column headers? Like in excel you can change the orientation of the text in a cell by so many degrees.
I dont need anything this precise, all i need is to display the text in my headers 90 degrees sideways, so that my headers with a caption of 5 characters can fit in a column which is only wide enough to fit 1 character.
Thanks,
Hi everyone,
I'm answering myselft and all others like me who were slow enough to not look at the samples that came with the Infragistics controls!
It is possible to change the Header Text orientation by setting a DrawFilter of the grid to a class implementing the DrawElement & GetPhaseToFilter methods. Then you simply have control to draw your header any way you like. Check the WinGrid/Sample Explorer...frmRotatedText.cs file for more details.
Wrong answer ;)
Correct answer is here http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/Win_Rotating_Column_Headers.html
It would be really great if Infragistics could update samples and knowledge base. That's really annoying when some outdated solution from version 2.1 is represented as best practices
If you are using the latest version (2008 vol. 2), then a new feature was added to allow you to set the orientation of the headers without using a DrawFilter.