Home Forums WinForms controls Xceed Grid for WinForms Multiple Text lines in header

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

    Is it possible to create a column header with multiple lines?

    Example:

    ————————————
    | Revenue |
    | (in thousands) |
    | $ |
    |———————————–
    | 12 |
    |———————————–
    | 13 |
    |…

    Imported from legacy forums. Posted by Sam (had 2261 views)

    Odi [Xceed]
    Spectator
    Post count: 426

    Using either inheritance or custom painting (your choice) you can put whatever you want in the custom header. However, built-in it does not support multiple lines in the header. You’ll have to draw the text in there yourself.

    Imported from legacy forums. Posted by Odi [Xceed] (had 273 views)

    User (Old forums)
    Member
    Post count: 23064

    I found that this also works….

    columnMgrRow.WordWrap = true;
    columnMgrRow.Height = columnMgrRow.GetFittedHeight(Xceed.Grid.AutoHeightMode.AllContent);

    Imported from legacy forums. Posted by Sam (had 3561 views)

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