Object is still being edited and can be saved

Object is still being edited and can be saved

Old forum URL: forums.lhotka.net/forums/t/4305.aspx


Misled posted on Wednesday, February 06, 2008

I have a businessBase (Invoice) that has children (BusinessListBase - InvoiceDetail). The children are then bound to a grid. If I do Grid.EndEdit or Bindingsource.EndEdit I still can't save the children. I'm never calling beginedit. When I try to Save I get "Object is still being edited and can be saved". I tried a "ApplyEdit" from the Invoice. You can't do "ApplyEdit" on the children because they are child objects. I know I'm doing something stupid here. Help please.....

RockfordLhotka replied on Wednesday, February 06, 2008

You need to unbind the objects from the UI. This is discussed in the Using CSLA .NET 3.0 ebook and illustrated in the CSLA .NET 3.0.3+ PTWin project.

Misled replied on Wednesday, February 06, 2008

How did I miss that!!!...... Thank You....

Copyright (c) Marimer LLC