如何改变DataGrit每行的行宽?

使用DataGrid中的属性值ColumnWidth的属性值

例如:

在用户界面我们先设置

<DataGrid Name="dataGrid" ItemsSource="{Binding}"></DataGrid>

后台代码中再进行编写

dataGrid.ColumnWidth = 80;

这样就可控制DataGrid中每列的宽度

原文地址:https://www.cnblogs.com/MoonASixpence/p/13507656.html