This is a migrated thread and some comments may be shown as answers.

RadGridView Top Border Color

1 Answer 442 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Intern
Top achievements
Rank 1
Intern asked on 25 Oct 2016, 08:46 PM

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>

 

1 Answer, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 27 Oct 2016, 04:25 PM
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!
Tags
GridView
Asked by
Intern
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Share this question
or