1、GridLinesVisibility = “全部”,VerticalGridLinesBrush = “红” 与了borderThickness = “1,1,5,0”
在dataGrid中设置这些属性,只能改变线的颜色,及表格的四边粗细,没办法设置线的宽度。
2、GridLines似乎没有宽度设置…您可以使用DataGridCell属性代替。
<DataGrid.CellStyle>
<Style TargetType="DataGridCell">
<Setter Property="BorderThickness" Value="0,0,3,0"/>
<Setter Property="BorderBrush" Value="Red"/>
</Style>
</DataGrid.CellStyle>