2

我尝试设置DataGridCell BorderBrush,但看起来还有其他设置,它也设置了单元格之间的边界。
当前Style

<Style x:Key="DataGridCellStyle1" TargetType="{x:Type DataGridCell}">
    <Setter Property="BorderBrush" Value="Yellow"/>
</Style>

它看起来像这样: 我不想要那里的黑色边框。我只想要黄色边框。有人可以指点我,我在哪里可以设置“黑色”边框?
黄色和黑色边框

4

1 回答 1

2

DataGrid 具有网格线的附加属性

尝试为两者设置黄色

VerticalGridLinesBrush="Yellow"    
HorizontalGridLinesBrush="Yellow"

或隐藏它们

GridLinesVisibility="None"
于 2016-04-22T09:38:26.437 回答