How to change the GridLine color and thickness?
23 Oct 2019 / 1 minute to read
GridLine color can be changed by using the GridLineStroke
property of PivotGrid and it can be mentioned either in XAML or in Code-Behind.
If through XAML, please refer the below code sample.
<syncfusion:PivotGridControl HorizontalAlignment="Left" Name="pivotGrid" VerticalAlignment="Top" GridLineStroke="#2F5BB7" ItemSource="{Binding Source={StaticResource data}}">
</syncfusion:PivotGridControl>
Else if through Code-Behind, please refer the below code sample.
public MainWindow() {
InitializeComponent();
pivotGrid.GridLineStroke = new SolidColorBrush(Colors.Black);
}
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page