I have a WinTree whos data source is a BindingSource. The BindingSource data source is a custom BindingList. When an element is removed from the BindingList, it is not removed from the WinTree.
Normally I would test this in a little test app, but it is late and I thought I might quickly ask: Is the WinTree suppose to remove nodes from the tree when it is removed from the data source or do I need to do that manually?
Sam
Ah, add a WinGrid, that is a GREAT idea. I just tried it and it is sticking around, there too. So the issue is in my code. Thank you, it is always nice to know which direction to go when looking for that bug!
Hi Sam,
Yes, the WinTree should be removing the node automatically, assuming it gets the proper notifications. My first guess here would be that the custom BindingList is not correctly implement IBindingList and is not sending the property notifications.
Try binding the WinGrid to the same BindingSource and see if it works in the grid. If it does not, then that's a pretty sure sign that the IBindingList implementation is incorrect. If it works in the grid and not in the Tree, then it's probably a bug in the tree.