Gridview selected row border

2 posts, 0 answers
  1. W
    W avatar
    17 posts
    Member since:
    Aug 2014

    Posted 11 Aug 2016 Link to this post


    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" />

  2. Dilyan Traykov
    Dilyan Traykov avatar
    1158 posts

    Posted 15 Aug 2016 Link to this post


    In order to achieve the desired look, you should create an appropriate style targeting the GridViewRow element and predefine its default ControlTemplate. The elements you need to modify are the Background_Selected and Background_Over.

    Please give this a try and let me know if you need any further assistance on the matter.

    If modifying the control template does not work for you, please specify whether you're using Implicit Styles or not, which theme you're using and whether you've applied styles targeting the GridViewRow element.

    Additionally, you may open a new support ticket and provide a sample project for us to investigate.

    Thank you in advance for your cooperation.

    Dilyan Traykov
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top