Event Handlers not copied in BBS


Author
Message
Kirk M Sherhart
Kirk M Sherhart
StrataFrame Novice (65 reputation)StrataFrame Novice (65 reputation)StrataFrame Novice (65 reputation)StrataFrame Novice (65 reputation)StrataFrame Novice (65 reputation)StrataFrame Novice (65 reputation)StrataFrame Novice (65 reputation)StrataFrame Novice (65 reputation)StrataFrame Novice (65 reputation)
Group: Forum Members
Posts: 41, Visits: 259
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.
ChanKK
ChanKK
StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)
Group: Forum Members
Posts: 190, Visits: 1.3K
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
ChanKK
ChanKK
StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)
Group: Forum Members
Posts: 190, Visits: 1.3K
Found the mistake. Thank you
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Glad you got to the bottom of it. Smile
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search