DataGrid ColumnWidth Property ignored in DataTemplate for row details

核能气质少年 提交于 2019-12-04 15:38:20

I know this question was asked about a year ago, but I've been facing the same problem and I've found out this solution:

 this.dgrData.Columns[0].Width = new DataGridLength(1, DataGridLengthUnitType.Star);
 this.dgrData.Columns[1].Width = new DataGridLength(1, DataGridLengthUnitType.Star);
 ...

Hope it may be of any help to someone.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!