I have a class like so:
class Entry
{
public virtual int Name { get; set; }
//Some more fields
public virtual Entry Parent { get; set; }
public virtual List<Entry> children { get; set; }
}
I want to make the object tree that I generate be visible and editable in a form. Is there a control that lets me do this and how? I’m new to C# so I may even be missing something very common. Thanks.
My advice is not to re-invent the wheel and just use the TreeView. Stuff your own data in the Tag property of the TreeNode.