Changing the selected row colour in the Rad Grid View

5 posts, 0 answers
  1. Andrew
    Andrew avatar
    13 posts
    Member since:
    Feb 2015

    Posted 29 Apr Link to this post

    I've been trying to change the selected row colour from the default grey to blue.  I've been able to change the un-selected row colour, but when I do that the selected row turns to a kinda orange, and I can't change it from there.

     

    Would anyone be able to help work out how to change this?

  2. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    277 posts

    Posted 29 Apr Link to this post

    Hi Andrew,

    Can you clarify what is the theme that you are using for your application?

    Generally, the approach you need to take is to Edit the Control Template of the GridViewRow and change the fill property of the border/rectangle that is applied to the Selected state. I have added a sample project that shows how to achieve the desired behavior for the Windows8 theme. 

    Regards,
    Stefan Nenchev
    Telerik
    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
  4. Andrew
    Andrew avatar
    13 posts
    Member since:
    Feb 2015

    Posted 29 Apr in reply to Stefan Nenchev Link to this post

    We're currently using the windows 8 theme with our own colour scheme styled in on top.
  5. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    277 posts

    Posted 02 May Link to this post

    Hello Andrew,

    In this case, the attached project should help to achieve your requirement. Did you have the time to review it?

    Regards,
    Stefan Nenchev
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  6. Andrew
    Andrew avatar
    13 posts
    Member since:
    Feb 2015

    Posted 03 May in reply to Stefan Nenchev Link to this post

    I'm afraid not as yet, I'll try to get to it this week and let you know how I get on
Back to Top
UI for WPF is Visual Studio 2017 Ready