Home Forums WinForms controls Xceed Grid for WinForms Headers ignore there vertical alignment

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

    I’m having the vertical text alignment of the column headers row (i.e. ColumnManagerRow). I want our headers to stand out a bit so I set the row to be 25 pixels high, I’d also like it to be the text to be aligned centrally so I set the VerticalAlignment to be center. The code executes with out error, but the text is not centered. I’ve tried setting the alignment to bottom, this doesn’t seem to have any affect either. Here’s the code I’m using:

          grid_control.FixedHeaderRows[1].Height = 25;
          grid_control.FixedHeaderRows[1].VerticalAlignment = VerticalAlignment.Center; 

    Thanks,
    Robert 

    Imported from legacy forums. Posted by Robert (had 1545 views)

    User (Old forums)
    Member
    Post count: 23064

    You need to do it at the cell level.

    e.g.:

          foreach( ColumnManagerCell cell in columnManagerRow1.Cells )
          {
            cell.VerticalAlignment = VerticalAlignment.Center;
          }
     

     

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

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