Hi,
If i select a row in the gridview, the selected color is orange and has a red border around it.
How can I remove this border?
The same for the row that is under the mousecursor. The color is than yellow, but it also has red border.
I tried this one but it does not work:
<Style TargetType="telerik:GridViewRow">
<Setter Property="Background" Value="White" />
<Setter Property="Foreground" Value="Black"/>
<Setter Property="BorderThickness" Value="0" />
</Style>
I have the same problem. I ask for an exampl.
I've tried this but it doesn't work:
<Style TargetType="telerik:RadGridView">
<Setter Property="Foreground" Value="#585857"/>
<Setter Property="Background" Value="#FF131313" />
<Setter Property="FontSize" Value="30"/>
<Setter Property="FontFamily" Value="Segoe UI"/>
<Setter Property="BorderBrush" Value="#FF131313"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="VerticalGridLinesBrush" Value="Black"/>
<Setter Property="HorizontalGridLinesBrush" Value="Black"/>
<Style.Triggers>
<Trigger Property="IsFocused" Value="True">
<Setter Property="Background" Value="#FF131313"/>
<Setter Property="BorderBrush" Value="#FF131313"/>
<Setter Property="VerticalGridLinesBrush" Value="Black"/>
<Setter Property="BorderThickness" Value="100"/>
</Trigger>
<Trigger Property="IsFocused" Value="False">
<Setter Property="BorderBrush" Value="#FF131313" />
<Setter Property="Background" Value="Red"/>
<Setter Property="VerticalGridLinesBrush" Value="Black"/>
<Setter Property="BorderThickness" Value="100"/>
</Trigger>
</Style.Triggers>
</Style
Just to clarify - can you please confirm that you want to remove the border from the selected and hovered rows? If that is the case, you need to define a style targeting the GridViewRow element rather than the RadGridView control and modify the elements I've specified in my answer below.
If you would specify which theme(s) you're using, I'd be happy to demonstrate how you can achieve this.
Hello
The problem was solved when CanUserSelect = "False".
I'm glad to hear that you've managed to find a suitable solution.