StrataFrame Forum

Event Handlers not copied in BBS

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

By Kirk M Sherhart - 8/14/2009

Hi All



I have a BO connected to a DevExpress grid via a BBS. I also have another object that subscribes to the BO's FieldPropertyChanged event. When changes are made via the grid, the FieldPropertyChanged event is not being fired. The event fires when changes are made directly to the BO, as expected.



I believe the cause can be traced to the BusinessBindingSource's CreateShareAndAddBusinessObject method. Events are not copied, so they are lost. I expect a CopyEventHandlersFrom call should be used somewhere in the routine.
By ChanKK - 10/25/2010

Hi,
I have screen to allow users to approve a leave submission in bulk. List of leaves listed in DevExpress ASPxGridView. User just select multiple records and click approve button.

I am facing problem that when user approve 1st batch of leaves and continue for 2nd batch (same page, postback), FieldPropertyChanged event become null. It cause object reference is not set when invoke this event. I don't have time to create project to simulate it for now. May I know anyone has this opinion? What could cause this issue?

Thank you
By ChanKK - 10/26/2010

Found the mistake. Thank you
By Trent L. Taylor - 10/27/2010

Glad you got to the bottom of it. Smile