This is a migrated thread and some comments may be shown as answers.

How to change orientation of the columns headings which are grouped

1 Answer 72 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Navinder
Top achievements
Rank 1
Navinder asked on 13 Jan 2012, 02:44 AM
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

1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 17 Jan 2012, 02:36 PM
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).

Tags
GridView
Asked by
Navinder
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Share this question
or