User-1151753060 posted
Hi,
I have created two custom tree nodes, one for a parent and one for a child. I've created two custom nodes as I need to render a different set of buttons beside each node. I have also created a custom TreeView and have attempted to override the CreateNode method.
However I' not sure how to implement the CreateNode method. The following code snippet illustrates what I'm trying to accomplish.
protected override TreeNode CreateNode()
{
if(someCondition)
{
return new ParentNode();
}
else if(someOtherCondition)
{
return new ChildNode();
}
else
{
return new TreeNode();
}
}