Hello,
I have a collection that contains children and those children can contain children etc. When i press on the rootnode to expand it works, when i click on the first childnode to expand it works etc. But when i press on the second childnode for example and i debug through the code (ColumnSetGenerated event) i see that the columnset doesnt contain any columns and it will display the children as Node4 for example instead of the columns.
Can someone help me with this problem?
Thank you.
First thing I would do is... don't use an IList. The BindingManager in DotNet does not work well with IList. Try using a List<T> or better yet, a BindingList<T>.
Any help appriciated.
HI Mike ,
I am also facing the same issue.I am using the IList collection to bind the TreeNode.
The problem doesnt occur with First Immediate child of the Node , but other child nodes.
Also, We have child nodes added to the first immediate child , we dont face problem in other child nodes(of base node).
I think its tightly binding the base node with immediate child node.
Can you please help......
Thanks,Ashish.
Hey Mike,
I want to thank you for your time to help me out.I didnt got it to work with databinding, i am now building the tree node for node. And this works great to. (Little bit difficult creating the columnsets, but it works now)
Thanks
That static method would generate the ColumnSet for you so you would not have to do it yourself.
KevinKlein said:It works for that child, but when i try to expand the childs child, it doesnt do anything.
Then clearly something is wrong with the ColumnSet for the child's child level of the data. When you are binding, the ColumnSet's Key has to match up to the name of the band. Or, you can assign the ColumnSet explicitly using properties on the various Override objects.