I have an MVVM view where I am overriding a GridViewDataColumn.CellStylewith a DataTrigger style that changes the colour of the Background based on the cell value (0 is red, >0 is green). This works great, except any cells that have been coloured this way no longer show their horizontal gridlines. The gridlines are still visible on other cells in the same row, and all vertical gridlines are still visible, but no horizontal gridlines on the custom styled cells.
Any idea what would cause the horizontal gridlines not to display just because the Background colour is overridden??
See attached image for an example of the grid with this styling in place.
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding PriceBreak}"
Header
=
"Price Break"
ColumnGroupName
=
"MainPrice"
Width
=
"85"
DataFormatString
=
"{}{0:G29}"
>
<
telerik:GridViewDataColumn.CellStyle
>
<
Style
TargetType
=
"telerik:GridViewCell"
BasedOn
=
"{StaticResource GridViewCellStyle}"
>
<
Style.Triggers
>
<
DataTrigger
Binding
=
"{Binding PriceBreak, Converter={StaticResource DecimalGreaterThanZeroToBooleanConverter}}"
Value
=
"False"
>
<
Setter
Property
=
"Background"
Value
=
"#FDEDED"
/>
</
DataTrigger
>
<
DataTrigger
Binding
=
"{Binding PriceBreak, Converter={StaticResource DecimalGreaterThanZeroToBooleanConverter}}"
Value
=
"True"
>
<
Setter
Property
=
"Background"
Value
=
"#EDFDEE"
/>
</
DataTrigger
>
</
Style.Triggers
>
</
Style
>
</
telerik:GridViewDataColumn.CellStyle
>
</
telerik:GridViewDataColumn
>