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

Remove GridLines from Header

I am using this XAML to remove the grid lines from datagrid header

<Grid:SfDataGrid x:Name="TheGrid"
                             CellStyle="{StaticResource App.AnalysisGridCellStyle}"
                             HeaderTemplate="{StaticResource App.AnalysisDetailHeaderTemplate}">
                    <Style TargetType="Grid:GridHeaderCellControl">
                        <Setter Property="Background"
                                Value="{StaticResource App.TopBarBackgroundBrush}" />
                        <Setter Property="BorderThickness"
                                Value="0" />
                        <Setter Property="BorderBrush"
                                Value="Transparent" />
Columns are added manually, not autogenerated, i see row lines removed from all but two header cells, any idea why? (see attached image)

Attachment: Capture_1cfda063.zip

1 Reply

SV Srinivasan Vasu Syncfusion Team March 10, 2016 12:50 PM UTC

Hi Corrado,
Thanks for contacting Syncfusion support.
We have analyzed your query and we have tested the same code that you have mentioned in simple sample. But its working fine from our side, for your reference we have attached the tested sample in the below sample location.
You have applied the HeaderTemplate in SfDataGrid which may leads to this problem, if it is possible could you please share App.AnalysisDetailsHeaderTemplate code? Otherwise, please revert by modifying the attached sample based on your application along with the replication procedure. That would be more helpful for us to analyze further.

Sample: http://www.syncfusion.com/downloads/support/forum/123350/ze/RowHeader1700525171

Live Chat Icon For mobile
Up arrow icon