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

Howto remove the vertical gridlines in the WPF version of SfDataGrid

Thread ID:





146068 Jul 18,2019 02:36 PM UTC Jul 19,2019 07:30 AM UTC WPF 3
Tags: SfDataGrid
Ian Ormesher
Asked On July 18, 2019 02:36 PM UTC

I would like to remove the vertical gridlines in the WPF version of SfDataGrid. The examples I can find only allow you to remove all the gridlines by setting the borderbrush to transparent. However, I don't want to removes all the gridlines. I want to keep the horizontal grid lines (which would separate the records) but remove the vertical grid lines (which separate the columns). Is this possible?

Many thanks,


Farjana Parveen Ayubb [Syncfusion]
Replied On July 19, 2019 05:29 AM UTC

Hi Lan, 
Thank you for using Syncfusion controls. 
We have analyzed your query, you can able to achieve your requirement, remove the vertical grid lines by customizing style for GridCell and GridHeaderCellControl.  
Please refer the below code example 
    <Style TargetType="syncfusion:GridCell"> 
        <Setter Property="BorderThickness" Value="0,0,0,1" /> 
    <Style TargetType="syncfusion:GridHeaderCellControl"> 
        <Setter Property="BorderThickness" Value="0,0,0,1" /> 
Please let us know whether this helps also if you need any further assistance on this. 
Farjana Parveen A 

Ian Ormesher
Replied On July 19, 2019 07:22 AM UTC

Hi Farjana,

That's perfect! Exactly what I was looking for. 

Thank you.

Farjana Parveen Ayubb [Syncfusion]
Replied On July 19, 2019 07:30 AM UTC

Hi Lan, 
Thanks for the update. 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 
Farjana Parveen A 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

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
Live Chat Icon