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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Remove GridLines from Header

Thread ID:

Created:

Updated:

Platform:

Replies:

123350 Mar 9,2016 02:06 PM UTC Mar 10,2016 12:50 PM UTC UWP 1
loading
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"
                             FrozenColumnCount="1"
                             ColumnSizer="Star"
                             SelectionMode="None"
                             AutoGenerateColumns="False"
                             BorderThickness="0"
                             CellStyle="{StaticResource App.AnalysisGridCellStyle}"
                             HeaderTemplate="{StaticResource App.AnalysisDetailHeaderTemplate}">
                <Grid:SfDataGrid.HeaderStyle>
                    <Style TargetType="Grid:GridHeaderCellControl">
                        <Setter Property="Background"
                                Value="{StaticResource App.TopBarBackgroundBrush}" />
                        <Setter Property="BorderThickness"
                                Value="0" />
                        <Setter Property="BorderBrush"
                                Value="Transparent" />
                    </Style>
                </Grid:SfDataGrid.HeaderStyle>
            </Grid:SfDataGrid>
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
Regards,
Srinivasan



CONFIRMATION

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.

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

;