ASP.NET: How to Create an Expandable Empty TreeNode
问题 I need to populate the TreeNode.ChildNodes on the event of TreeView.TreeNodeExpanded . The problem is the node is empty before the event gets fired and it is not expandable in this case and there is no expand icon [+] showed next to it. I want to make the node expandable in case its related object has some children without adding those children to the node. I thought about adding a virtual child to the node and delete it when it is expanded. Are there any better options ?? Thank you. 回答1: