Change color of RadGridView

3 posts, 0 answers
  1. Rubens
    Rubens avatar
    10 posts
    Member since:
    Jan 2013

    Posted 14 May 2014 Link to this post

    How to change the main color of RadGridView
    from black to red

    graciously
    André
  2. Rubens
    Rubens avatar
    10 posts
    Member since:
    Jan 2013

    Posted 14 May 2014 in reply to Rubens Link to this post

    from black to red
  3. Boris
    Admin
    Boris avatar
    276 posts

    Posted 15 May 2014 Link to this post

    Hello Rubens,

    The easiest way to change the color of all the components of the GridView is to use NoXaml binaries with the Themes.Implicit themes. For more information you can check these resources:
    - Editing Control Templates.
    - Setting a Theme (Using Implicit Styles).
    - Styles and Templates GridView section.
    - The Theming demo for WPF / Silverlight.

    To make this a little clearer I attached a sample project demonstrating how you can change the color of the GridView header. In the example I change only the GridView_HeaderBackGround and GridView_HeaderRowBackGround brushes. Which are located in the Telerik.Windows.Controls.GridView.xaml file in the Themes folder. Please keep in mind that if  you need to change the color of other parts of the GridView you will need to check the Styles and Templates GridView section mentioned above.

    I hope this helps.

    Regards,

    Boris Penev
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top