>On the form I described in another thread, I decided to put code in the PostSaveHook() to automatically requery my secondary cursor that I'm using in the grid on a cBizObjMaintenanceForm. This way, changes will show up in the grid. Normally this isn't required if your primary bizobj view is the one in the grid.
>
>The problem with doing this (as I found out) was that PostSaveHook() is still in the middle of the transaction. It
has just saved the primary bizobj info, but it still hasn't handled the child bizobjs.
>
>Would it be helpful to other developers (besides myself) for something like a PostTransactionHook() method? This may not come up enough for other developers to justify adding it, but who knows. In the meantime I just overrode the Save() method to dodefault(), and on success, requery my view.
I also do the same thing when using transactions. Having a PostTransaction method would be very helpful as part of the base framework.
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi