FieldPropertyChanged event not fire using BusinessBindingSource


Author
Message
StrataFrame Team
S
StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Most likely, it's because the event handlers are not copied from the business object to the copies of the business object that are being returned by the BBS.  It might take some time for me to look at this, but as a work around for now, you could put a method on the form and in the handler within the business object, the one that is reached, use the ParentForm property and if the form is the proper type, then call the method.
Chan
Chan
Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

I am facing the same problem. I bind SF BO to Xtragrid using BusinessBindingSource. I have FieldPropertyChanged event handler within BO, and also form.



When add new record, I set default value to new record. Both even handlers is fired. However, If I changed any value in xtraGrid column, only the event handler INSIDE that BO is fired. The one reside in form is not.



I set breakpoint at Field setter method, and it stopped at there too.



Any ideas?



Thank you
StrataFrame Team
S
StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Put a break point in your BO on the set {} of the property and see it it gets hit when you change the value of the LookupEdit.  It is most likely that the lookup edit is not persisting the values back to the business object until the row changes... there is an "update mode" property somewhere on the control that should control when the grid updates back to the data source.
Chan
Chan
Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

I use BusinessBindingSource to link DevExpress.LookupEdit with SF BO. I found that, FieldPropertyChanged event is not fired when I changed value of lookedit.



Any ideas?



Thank you
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