Gridview selected row border

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

    Posted 11 Aug Link to this post

    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>

  2. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    368 posts

    Posted 15 Aug Link to this post

    Hello,

    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.

    Regards,
    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.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top