Greetings,
I have run into an issue when changing the GridViewRow background color. I have changed the background color based on IsAlternating in the example below: (Note that VerticalGridLinesVisibility is set to True)
In this example the grid will not show vertical lines with in the rows. I'm guessing this is due to how the controls are layered and the control (Border?) that serves as the row background is overlaying the base grid structure and hiding the grid lines.
I was going to attempt to just change the cell colors themselves based on whether or not they were in an alternating row, however I haven't found a way to accomplish that. I have been unable to find a way to tell if the cell is in an alternating row.
Is there tweak I can make to the control templates to allow grid lines to show in this scenario?
Thanks,
Chris
I have run into an issue when changing the GridViewRow background color. I have changed the background color based on IsAlternating in the example below: (Note that VerticalGridLinesVisibility is set to True)
<Window.Resources> |
<Style TargetType="{x:Type telerik:GridViewRow}" > |
<Style.Triggers> |
<DataTrigger Binding="{Binding IsAlternating}" Value="False"> |
<DataTrigger.Setters> |
<Setter Property="Background" Value="#ABD5F3" /> |
</DataTrigger.Setters> |
</DataTrigger> |
<DataTrigger Binding="{Binding IsAlternating}" Value="True"> |
<DataTrigger.Setters> |
<Setter Property="Background" Value="#CAEEFE" /> |
</DataTrigger.Setters> |
</DataTrigger> |
</Style.Triggers> |
</Style> |
</Window.Resources> |
<Grid> |
<telerik:RadGridView Name="radGridViewStyleSimpleTheme" VerticalGridlinesVisibility="Visible"> |
<telerik:Theming.Theme> |
<simple:SimpleTheme /> |
</telerik:Theming.Theme> |
</telerik:RadGridView> |
</Grid> |
In this example the grid will not show vertical lines with in the rows. I'm guessing this is due to how the controls are layered and the control (Border?) that serves as the row background is overlaying the base grid structure and hiding the grid lines.
I was going to attempt to just change the cell colors themselves based on whether or not they were in an alternating row, however I haven't found a way to accomplish that. I have been unable to find a way to tell if the cell is in an alternating row.
Is there tweak I can make to the control templates to allow grid lines to show in this scenario?
Thanks,
Chris