Home Forums WinForms controls Xceed Grid for WinForms Multiline Column Header on Printing

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #16907 |

    When I print to fit on page the column headers get cut off. Is there any way to make the column header word wrap to multiple lines?

     Thanks!

    Imported from legacy forums. Posted by David (had 2073 views)

    User (Old forums)
    Member
    Post count: 23064

    You can set the ColumnManagerRow to display more than one line of text.  You need to set the Height of the row with the help of the GetFittedHeight() method AFTER setting the title of the columns.

    e.g.:
          gridControl1.Columns[ 0 ].Title = “First line” + “\n” + “Second line”;     
          columnManagerRow1.Height = columnManagerRow1.GetFittedHeight( AutoHeightMode.AllContent );

    Imported from legacy forums. Posted by André (had 1857 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.