Hi nobuz
Thanks for you reply.The code used by me is very big, however i am herewith giving abrief of it below.assume that ihave already created thetreeview
TreeNode tr = new TreeNode("first major node",0,0)
foreach (objienumerator in objarraylist)
foreach(objienumerator1 in objarraylist1)
{
objenumerator.property1= objienumerator1.property1;
objenumerator.property2= objienumerator1.property2;
TreeNodernode = new TreeNode("subnode",1,1);
rnode.Checked = true;
rnode.Tag = objienumerator;
tr.Nodes.Add(rnode);
}
}
Now what happens that when i am finished with the iterations, i end up with all subnodes having the same value.I am able to mange having different text for them but tag property of all gets setted to the last value of objienumerator;
Due to some application constraint,I can't use any other object(like objienumerator1) other than objienumerator.
All other things are created properly in the tree.
Can somebody please help me how to deal with this.
regards