M
m.pollack
Hi all,
I have an application which uses a class object that
contains a collection. In order to use the PropertyGrid
control to expose properties to the user at runtime, I
created a strongly-typed collection class based on
CollectionBase. However, when I use the PropertyGrid to
remove objects from the collection at runtime via the
popup Object Collection Editor, it appears that the "On*"
(CollectionBase.OnRemove and
CollectionBase.OnRemoveComplete) hook methods in the
collection class aren't being called. The Insert hook
(CollectionBase.OnInsert) works fine, though. I need to
get this working, because if the user removes objects from
the collection I have housekeeping to do. Is this a bug?
It seems to be -- I saw one reference to the problem here:
http://lists.ximian.com/archives/public/mono-list/2001-
November/001978.html
Any thoughts? thanks... MP
I have an application which uses a class object that
contains a collection. In order to use the PropertyGrid
control to expose properties to the user at runtime, I
created a strongly-typed collection class based on
CollectionBase. However, when I use the PropertyGrid to
remove objects from the collection at runtime via the
popup Object Collection Editor, it appears that the "On*"
(CollectionBase.OnRemove and
CollectionBase.OnRemoveComplete) hook methods in the
collection class aren't being called. The Insert hook
(CollectionBase.OnInsert) works fine, though. I need to
get this working, because if the user removes objects from
the collection I have housekeeping to do. Is this a bug?
It seems to be -- I saw one reference to the problem here:
http://lists.ximian.com/archives/public/mono-list/2001-
November/001978.html
Any thoughts? thanks... MP