views:

8

answers:

0

I have a List of structs:

public struct NodeIntHwnd
{

    public TreeNode Node; // a treeNode with a string
    public int Level; // level of depth
    public IntPtr Hwnd; // not important
};

They are sorted in a List sth like:

     {
        This is a node, 0 // root
        This is a node, 1 // level down
        This is a node, 2 // level down
        This is a node, 0 // root
     }

How to easly create a treeview structure with this?