StrataFrame Forum

Complex BO

http://forum.strataframe.net/Topic1266.aspx

By Larry Caylor - 5/23/2006

I’ve put together a complex BO and would like to programmatically add some rows to the business object contained within the primary BO when a new row is added to the primary. What would be the best way to accomplish this? There is no RowAdded event so it doesn't appear there is an easy way to determine when a new row is added. One thought was to use the BeforeSave event on the primary BO and loop through its' data table looking at the RowState for each row to see if it was added.

 

Also what's the ListChanged event for? I can't find it in the Doc.

 

-Larry

 

By StrataFrame Team - 5/24/2006

Well, Larry, the BeforeNewRow and AfterNewRow events are going to be in the next release (had several people asking for them), and the ListChanged event is part of the IBusinessBindable interface, which will be removed in the next release (because there is a new BusinessBindingSource that allows you to use a business object within a grid).  The IBindingListView interface was causing problems because the business object never knew whether it needed to act like a list, or act like a single record, which caused all sorts of problems.
By Larry Caylor - 5/25/2006

The new events are just what I needed. Thanks.

-Larry

By StrataFrame Team - 5/25/2006

Smile
By hector - 4/23/2013

Hi ,

Any news about BeforeNewRow and AfterNewRow events...

Really we need them...

Kind regards...
By Edhy Rijo - 4/23/2013

Hi Hector,

Have you look at the BeforeAddNew and AfterAddNew events in the BO?