I have a collection object that implements IList. Inside the collection I have used a List to collect the items. Inside the PropertyGrid (at runtime), it binds properly and the Collection Editor opens. I can edit, and I can add items properly and I can catch these methods when they are used in the collection class.
However, if you try to remove any items, they get removed from the collection, but neither IList.Remove or IList.RemoveAt are seemingly used from my Collection. The items deleted are also meant to be deleted from a database, behaviour I implement in the Remove methods.
I also removed all the logic from the remove methods and left them with throw new NotImplmented(), and these don't get fired at all!
I also have an implemented by own CollectionEditor, but still can't see a way to hook into my objects.
So, where should I be looking to find the relevant methods? do I need to change the behaviour of my items as well?