Liew,
>Hi all, I wish to delete all the child records whenever the parent record is deleted, what's the simplest way to do so? Thanks.
All you have to do is set the child business object's AutoDeleteOnParentDeleted property to true (you can do this in the child object's constructor).
This causes the child to receive a DeleteAll() message when the parent record is deleted. You can see the code that handles this Deleting event by examining mmBusinessObject.StateChangeHandler().
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com