Hi , I am using a infragistics treeview control and binding the root node with the IList collection to display child nodes.
However I am facing some kind of weired issue.
When I am adding a child node at fourth level(Considering base as first level) , text is not appearing and its showing me as "Node5".
Further,its not showing the nodes added to it (Node5).I have checked in the datatable its showing all the data for the node properly.
If i add child nodes to the first child of base node , i dont see any issue......everything works fine.But the issue comes up when I try to add child node to Second child of root node.
I am not sure if I am binding the First child with the base node only....
Can you please help me with this??.
Thanks,Ashish.
Hi Ashish,
An IList is generally not a good DataSource to use to for any control. The BindingManager in DotNet does not handle it very well, and IList is limited in that it does not have any way to notify controls when rows are added or removed.
I recommend using BindingList<T> or even List<T>.
If that doesn't help, then I recommend that you get the latest service release:
How to get the latest service release - Infragistics Community
If that still doesn't help, then it's probably a problem with the column sets. In that case we would probably need to see a small sample project demonstrating the problem in order to determine why it's not working.
Hi Mike
Thanks for you response. We have the version 9.2 with us, so version should not be an issue.
I have tried implementing the Binding List or List , Still the same issue.
Can you provide some sample application having Parent Child relation binding with the datatable..
Regards,Ashish.
There are samples of this included in NetAdvantage. There are quite a few databinding samples for the tree.I doubt that would help you to explain why this is happening, though.
It's most likely a problem with the ColumnSets for the band in question. But it's hard to guess what that might be without seeing the problem for myself and looking at the ColumnSets that are being used.
If you can duplicate this issue in a small sample project, I'd be happy to take a look at it.