Hi,
I have a BusinessListBase with BOs. Each of them have a BusinessListBase too. My list is bound to a grid and changes are made in a seperate form.
My Problem: If I call CancelEdit on my BO it doesn't cancel the changes of my child collection. I've debugged the code and I found that in the method "Csla.Core.UndoableBase.UndoChanges(int parentEditLevel)":
if
(typeof(Csla.Core.IUndoableObject).IsAssignableFrom(field.FieldType)){
If that code comes to my child collection "_bindigEdit" is true, altough I called CancelEdit() in my child form.
Now is my question: How can I cancel my modifications so, that the modifications on the childobject are canceld too?
This is addressed in the Using CSLA .NET 3.0 ebook. Windows Forms data binding is very picky about how the object behaves, and no variation is allowed.
The basic process is this:
The process of unbinding is a little tricky and must be done exactly as shown in PTWin 3.0.4 or higher, and as described in the ebook. In CSLA .NET 3.6 there's a new CslaActionExtender control (and associated component) to make this process simpler.
Copyright (c) Marimer LLC