Hi Sherly,
Thank you for your interest in Syncfusion Products.
I have created a simple sample according to the scenario that you have mentioned. The sample contains MultiColumnTreeview control that has 2 columns. I have added subitems at runtime to the alternate nodes and showed only the nodes that has subitem. Please find the following code snippet that hides the nodes that has no sub item:
for (int j = 0; j < this.multiColumnTreeView1.Nodes.Count;j++ )
{
if (this.multiColumnTreeView1.Nodes[j].SubItems.Count ==1)
{
this.multiColumnTreeView1.Nodes[j].Visible = false;
}
}
Please find the sample in the following link:
http://websamples.syncfusion.com/samples/Tools.Windows/F73371/main.htmPlease let me know if any concerns.
Regards,
Fathima