How to make the last DataGrid's column occupy the whole left space?

前端 未结 1 496
隐瞒了意图╮
隐瞒了意图╮ 2020-12-15 08:23

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

相关标签:
1条回答
  • 2020-12-15 09:00

    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

    0 讨论(0)
提交回复
热议问题