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
Wrong answer for most, but right one for me...i'm still using an older version of the Infragistics controls :(
I tried out the sample code and it rotated my column headers which is great. In addition to that though, it also made the text appear bold and fuzzy. How can I prevent that from happening?
Does the text appear bold and fuzzy in the sample? Or just in your application? This probably has to do with how you are drawing the text.