How to change the GridLine color and thickness?

23 Oct 20191 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.

  • XAML
  • <syncfusion:PivotGridControl HorizontalAlignment="Left" Name="pivotGrid" VerticalAlignment="Top" GridLineStroke="#2F5BB7" ItemSource="{Binding   Source={StaticResource data}}">

    Else if through Code-Behind, please refer the below code sample.

  • C#
  • public MainWindow() {
        pivotGrid.GridLineStroke = new SolidColorBrush(Colors.Black);