Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
260
Howto: Column Headers Text Orientation
posted

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,

Parents
No Data
Reply
  • 260
    posted

     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.

Children