Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
Center Content in XamDataGrid
posted

Hi!

I have a XamDataGrid and I want to display the content of the rows not on the left or right but center. I tried the 

HorizontalContentAlignment="Center"

 but still the content is on the left (if it is a text) or on the right (if it is a number) of the cell. But I want to have all values of all cells centered.

I can set the LabelTextAlignment of each row to Center, but then still there's only the lable centered but not the value..

 

Can somone tell me what I do wrong or how I can center the content of all my fields???