Way to get BindingList<T> removed item?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jehugaleahsa@gmail.com

    Way to get BindingList<T> removed item?

    Hello:

    I would like to perform an action on an item when it is removed from a
    BindingList<T>. However, I can only find out how to get the old index
    of the item, which doesn't really help me.

    Is there a way to get at the removed item?

    Thanks,
    Travis
  • Marc Gravell

    #2
    Re: Way to get BindingList&lt; T&gt; removed item?

    Well, one option would be to subclass BindingList<Tan d override the
    RemoveItem() method (and SetItem() and ClearItems() if needed). Then
    you have access to the item before it gets removed.

    Marc

    Comment

    Working...