M
moni
Hi,
I wanted to know if there was any way by which I could make a treenode
control an item on my listview control. I have tried doing that..but
the listview control does not allow me to add a treenode to it.
This is allowed:
item1 = new ListViewItem(p1.DisplayName);
This is giving error quite obviously,
item1 = new ListViewItem(t1.Nodes.AddRange(new
System.Windows.Forms.TreeNode[]
{new System.Windows.Forms.TreeNode(p1.DisplayName,
createTreeNodechannels(channelPre,p1.DisplayName))
}));
where t1 is a treenode control.
Any help would be good.
Thanks.
I wanted to know if there was any way by which I could make a treenode
control an item on my listview control. I have tried doing that..but
the listview control does not allow me to add a treenode to it.
This is allowed:
item1 = new ListViewItem(p1.DisplayName);
This is giving error quite obviously,
item1 = new ListViewItem(t1.Nodes.AddRange(new
System.Windows.Forms.TreeNode[]
{new System.Windows.Forms.TreeNode(p1.DisplayName,
createTreeNodechannels(channelPre,p1.DisplayName))
}));
where t1 is a treenode control.
Any help would be good.
Thanks.