Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

When ShowColumnHeaders="False" data is not rendered until you scroll #377

Open

Description

@viktorfilim

I have a Hierarchical TreeDataGrid.
If I set ShowColumnHeaders="False" the data in tree is not rendered until I scroll. I can expand and collapse nodes but no text is displayed.

If I set ShowColumnHeaders="True" everything is OK.

tree_render_issue.mp4
NodesSource = new HierarchicalTreeDataGridSource<NodeViewModel>(nodes)
{
    Columns =
        {
            new HierarchicalExpanderColumn<NodeViewModel>(
                new TextColumn<NodeViewModel, string>
                    (null
                        , x => x.TitleForUI
                        ,GridLength.Star
                        ,new TextColumnOptions<NodeViewModel>()
                            {
                                CanUserResizeColumn = false,
                                CanUserSortColumn = false,
                                TextWrapping = TextWrapping.WrapWithOverflow,
                            }
                        ) ,x => x.SubNodes, x=>x.IsBook)
        }
};

_selectedNodes = new TreeDataGridRowSelectionModel<NodeViewModel>(NodesSource);
_selectedNodes.SelectionChanged += SelectedNodes_SelectionChanged;
NodesSource.Selection = _selectedNodes;

<TreeDataGrid IsVisible="{Binding !IsLoading}" ShowColumnHeaders="False" Source="{Binding NodesSource}" />

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions