Search code examples
wpfdatagridtreeviewcustom-controls

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


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

To clarify, take a look at this image:
DataTreeGrid Custom Control

So, I have a TreeView at left side with columns at right side.
The data will come from objects like this:

public NodeData Parent;
public List<NodeData> Children;

public String Label;

public Boolean DataA;
public Boolean DataB;
public Boolean DataC;
public Boolean DataX;
public Boolean DataY;
public Boolean DataZ;

How can I create this?


Solution

  • This blog entry from Marius Rochon may help you.