Reputation: 1351
I tried to set DataGridCell
BorderBrush
, but it looks like there is some other setting, which also sets border between cells.
Current Style
:
<Style x:Key="DataGridCellStyle1" TargetType="{x:Type DataGridCell}">
<Setter Property="BorderBrush" Value="Yellow"/>
</Style>
It looks like this:
I don't want that black border there. I want just the yellow border. Can someone please point me, where can I set the "black" border?
Upvotes: 2
Views: 245
Reputation: 35713
DataGrid has additional properties for grid lines
try set Yellow color for both
VerticalGridLinesBrush="Yellow"
HorizontalGridLinesBrush="Yellow"
or hide them
GridLinesVisibility="None"
Upvotes: 2