Skip to content

How to add a GridLines to a TreeDataGrid? #18043

Answered by msneijders
nasterhe asked this question in Q&A
Discussion options

You must be logged in to vote

With some styling:

<TreeDataGrid>
    <TreeDataGrid.Styles>
        <Style Selector=":is(TreeDataGridCell)">
            <Setter Property="BorderBrush" Value="Black" />
            <Setter Property="BorderThickness" Value="0,0,1,1" />
        </Style>
    </TreeDataGrid.Styles>
</TreeDataGrid>

or use TreeDataGridRow for only lines on row level.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@nasterhe
Comment options

@nasterhe
Comment options

@msneijders
Comment options

@nasterhe
Comment options

Answer selected by nasterhe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants