treenode within a listview control

  • Thread starter Thread starter moni
  • Start date Start date
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.
 
hey,

That link does not have useful information, as it does not tell me abt
adding a a treenode control to a listview control.

Thanks.
:) a bit lazy to dig down but if you can't get it here then ...
http://msdn2.microsoft.com/en-us/library/6dwb14tw.aspx

chanmm

moni said:
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.
 
hey,

That link does not have useful information, as it does not tell me abt
adding a a treenode control to a listview control.

Thanks.
:) a bit lazy to dig down but if you can't get it here then ...
http://msdn2.microsoft.com/en-us/library/6dwb14tw.aspx

chanmm

moni said:
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.
 
Back
Top