In this case, the Parent form will manage 1 child BO and this will manage another child BO and this another one. That is the reason I prefer to manage the save in each ChildForm.
I tried MyBo.CheckRules(True) and it worked but it did not show the Infobox, then I found another message in the forum suggesting to use the form's Save() http://forum.strataframe.net/Topic6212-6-1.aspx so I endup with the code below which so far give me the functionality I want when calling the ChildForm via the new enhanced ListView:
Thanks for your recommendations!
Then on the Parent form you will look to see what the results of the Dialog were and take appropriate action. If you are using the ListView then handle the ChildFormResults event, but if you are calling the ChildFormDialog directly, the logic would be the same, but just be wrapped around the ShowDialog.
It would look something like that.
I have a ListView which calls a ChildForm with a child BO which I would like to control the saving and broken rules on the childform. I have the following code in the Save button of my ChildForm:
The problem is that the broken rules are not shown in the form and the form is released, but in the parent form the childbo state is Editing.
How can I accomplish having control on the ChildForm to Save/Undo the data and when returning to the Parent Form not worrying about the childBO state?