RadGridView Top Border Color

2 posts, 0 answers
  1. Intern
    Intern avatar
    2 posts
    Member since:
    Oct 2016

    Posted 25 Oct 2016 Link to this post

       I have been trying to solve my issue that the top border color is always gray but for some reason I cannot find what generates it. As you can see the border is red but the topborder is gray. Anything I am missing?


    <UserControl HorizontalAlignment="Left" Width="371" Height="648">
            <local:radGridViewBasketData x:Key="DataSource"/>
     <telerik:RadGridView x:Name="radGridViewBasket" Background="Transparent" BorderBrush="Red" BorderThickness="1"
                                             HorizontalAlignment="Left" Width="371" Margin="0,3,0,3"
                                             RowIndicatorVisibility="Collapsed" ShowColumnHeaders="False"
                                             AutoGenerateColumns="False" ShowGroupPanel="False">
    <!-- stuff -->


  2. Lance | Manager Technical Support
    Lance | Manager Technical Support avatar
    1168 posts

    Posted 27 Oct 2016 Link to this post

    Hello Intern,

    Since you didn't provide a screenshot, I used your code to reproduce your GridView. From what I could tell using your code, the gray you're referring to is actually the GridLines.

    You can change the visibility or the brush of the lines to meet your needs using these three properties:

    - GridLinesVisibility
    - VerticalGridLinesBrush
    - HorizontalGridLines

    I've altered your code to change the color of the GridLines, attached is a screenshot and here is the code:

    <telerik:RadGridView x:Name="radGridViewBasket"
                <!-- stuff -->

    If this doesn't help, please reply back with a screenshot of what you're seeing and call out what you're trying to change.

    Thank you for contacting Support and for choosing Telerik by Progress.

    Lance | Tech Support Engineer, Sr.
    Telerik by Progress
    Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
Back to Top