How to change orientation of the columns headings which are grouped

2 posts, 0 answers
  1. Navinder
    Navinder avatar
    1 posts
    Member since:
    Oct 2010

    Posted 12 Jan 2012 Link to this post

    I am trying to change orientation of the columns headings which are grouped together. But, its not working. As soon as I remove the grouping it works. Is there a fix for it yet and/or suggestions how to solve this.

    Thanks,

    Inder
  2. Ivan Petrov
    Admin
    Ivan Petrov avatar
    705 posts

    Posted 17 Jan 2012 Link to this post

    Hi Navinder,

    Thank you for writing.

    If I have understood your requirement correctly, you can use the ViewCellFormatting event of the RadGridView to set the text orientation of the header cells. Here is a code snippet which demonstrates this:
    private void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
    {
      if (e.CellElement is GridHeaderCellElement)
      {
        e.CellElement.TextOrientation = Orientation.Vertical;
      }           
    }

    If this is not what you want to achieve, I would kindly ask you to provide some more information and if possible a screen shot or a sketch, so I can get a better idea of your requirements.

    I am looking forward to your reply.

    All the best,
    Ivan Petrov
    the Telerik team

    SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

Back to Top