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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Remove GridLines from Header

Thread ID:





123350 Mar 9,2016 02:06 PM UTC Mar 10,2016 12:50 PM UTC UWP 1
Tags: SfDataGrid
Corrado Cavalli
Asked On March 9, 2016 02:06 PM UTC

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

Srinivasan Vasu [Syncfusion]
Replied On 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


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