I'm playing around with the font's orientation in header cols. All I want to have is that the font is oriented by 90 degrees and the whole text is displayed in the (header) cell. But I don't manage it. Can someone give me a hint?
Here's my code snippet:
private void Form1_Load(object sender, System.EventArgs e)
gc[1,1].Text = "isdahfkashdfasdfjaskfdjaslkdfjklsjdfkasjdfklsjfkljasldkfj";
gc[1,1].Font.Orientation = 90;
//gc[1,1].WrapText = false;
ADAdministrator Syncfusion Team April 9, 2003 09:48 AM
There appears to be a problem with the RowHeights.ResizeToFit handling the Orientation properly. We will have to look into it.
As a workaround, you could calculate the string length and use that for the row height. Here is a little snippet.