RadGridView Top Border Color

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

    Posted 25 Oct Link to this post

    Hi
       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">
     <UserControl.Resources>
            <local:radGridViewBasketData x:Key="DataSource"/>
     </UserControl.Resources>
     
     <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 -->
            </telerik:RadGridView>
    </UserControl>

     

  2. Lance | Tech Support Engineer, Sr.
    Admin
    Lance | Tech Support Engineer, Sr. avatar
    137 posts

    Posted 27 Oct 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"
                                 Background="Transparent"
                                 BorderBrush="Red"
                                 BorderThickness="1"
                                 GridLinesVisibility="Both"
                                 HorizontalGridLinesBrush="Yellow"
                                 VerticalGridLinesBrush="Green"
                                 HorizontalAlignment="Left"
                                 Width="371"
                                 Margin="0,3,0,3"
                                 RowIndicatorVisibility="Collapsed"
                                 ShowColumnHeaders="False"
                                 AutoGenerateColumns="False"
                                 ShowGroupPanel="False">
                <!-- stuff -->
            </telerik:RadGridView>


    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.

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