Home Forums WPF controls Xceed DataGrid for WPF Center a Columns Contents

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

    How do I center the contens of a column?

    -Terry

    Imported from legacy forums. Posted by Terry (had 405 views)

    Xceed Support
    Member
    Post count: 5658

    If you want to affect only one column, you need to create a CellContentTemplate for the Column and set the TextBlock.TextAlignment property on one of the element of the DataTemplate.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 2595 views)

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