I am using a ListChanged event to detect changes to a childlist and to then iterate through it.
I have discovered that the ListChanged event is raised when I add an item to the collection but not when simply edit one - is this the expected behaviour?
I have a feeling the problem may lie in where I am hooking-up the event. Currently, I have the following:
_customerContactList.ListChanged +=
new System.ComponentModel.ListChangedEventHandler(ResetBillToShipTo);...in the constructor of the Parent Object (an EO). I think this maybe where the problem lies.
Any suggestions please.
Thanks
Bonio
Hi Rocky
Thanks for the reply.
I think the problem was due to when I was 'hooking-up' the event. I initially had it in the EO's constructor and this worked fine when the object was new but not when it was just changed. I have since moved the event 'hook-up' code to the Public property for the childlist and this is now working fine.
Thanks
Bonio
Copyright (c) Marimer LLC