Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2387
WinTree, data binding, and removing elements
posted

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

Parents
  • 469350
    Verified Answer
    Offline posted

    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.

Reply Children
No Data