First! I know it can seem a kind of dup nevertheless it isn\'t.
I have a grid as a data template for DataGrid.RowDetails
.
It has three columns: two with
Finally I found the soultion.
Just added ScrollViewer.HorizontalScrollBarVisibility="Disabled"
For those who targets Framework v4.0
Recently we found a bug which our users had and the developers did not. The bug was again about DataGrid's width and alignment. Well, may be this was not really a bug but we had different behavior of the control.
The research revealed that when installing .net framework 4.5 installer also updated .net framework 4.0. This update changed somehow DataGrid's behavior. (to the expected one)
We asked our users to install framework 4.5 and the problem disappeared. Though our app still targets .net 4.0