column alignment problem

If I set the column DataGridTextBoxColumn alignment to HorizontalAlignment.Right, the header text also aligns right. It also seems to lose the rightmost character. see screenshot example:

<a href="http://site218.webhost4life.com/mdev/colalign/colalignment.jpg">screenshot</a>

Any suggestions
Thanks.


Answer this question

column alignment problem

  • Bu Shaz

    Yes a bug, it's caculating the width of the text, try using a fixed with font.

    also, lots of interesting advice for datagrids at
    http://www.syncfusion.com/FAQ/WindowsForms/Default.aspx#44

  • column alignment problem