Way to get BindingList<T> removed item?

  • Thread starter Thread starter jehugaleahsa
  • Start date Start date
J

jehugaleahsa

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
 
Well, one option would be to subclass BindingList<T> and override the
RemoveItem() method (and SetItem() and ClearItems() if needed). Then
you have access to the item before it gets removed.

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top