Creating a WPF Hybrid Control (TreeView + DataGrid = DataTreeGrid)

前端 未结 3 1384
忘掉有多难
忘掉有多难 2020-12-24 09:32

I need to create a TreeView that hold synchronized data, like a DataGrid.

To clarify, take a look at this image:

相关标签:
3条回答
  • 2020-12-24 10:08

    This blog entry from Marius Rochon may help you.

    0 讨论(0)
  • 2020-12-24 10:25

    To me this looks like a regular DataGrid with a few Groupings set on it

    So in your case you would create a DataGrid that groups on Root, Node #, Node 2nd Number, and Node 3rd Number.

    Also flatten your list of NodeData so it is a single list with each item containing properties for Root, NodeLevel1, NodeLevel2, and NodeLevel3

    0 讨论(0)
  • 2020-12-24 10:31

    This is the best control I have found for presenting data like this. It does not require an interface/basclass on the viemodels and uses HierarchicalDataTemplate

    0 讨论(0)
提交回复
热议问题