We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change the grid line color?

Platform: UWP |
Control: SfDataGrid |
.NET Framework: 4.5 |
Product Version:

The SfDataGrid provides an option to customize the Grid line color. By default, the grid line color is shown in a Gray color. But, you can customize the grid line color by customizing style for the Cells in the SfDataGrid (GridCell, GridHeaderCell, GridCaptionSummaryCell, GridTableSummaryCell, GridHeaderIndentCell, GridIndentCell, GridStackedHeaderCellControl, GridGroupSummaryCell).

 In each cell the Grid lines are drawn at Right and Bottom position only. Each cells Grid line color is based on the BorderBrush property of the Cell.

Refer to the following code example where the BorderBrush property is changed to customize the line color.


Refer to the screenshot where the SfDataGrid is loaded with customized grid line color.

C:\Users\jayapradha\Desktop\Gridlines\grid line color.PNG

Refer to the following screenshot with the customized gridline color while grouping.


Sample Links:





2X faster development

The ultimate UWP UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile