WinForms Binding problem with DevExpress XtraGrid

WinForms Binding problem with DevExpress XtraGrid

Old forum URL: forums.lhotka.net/forums/t/5743.aspx


Wayne Hiller posted on Wednesday, November 05, 2008

Csla 3.0.3.1

 

I am having a weird WinForms data binding issue that I’m hoping you may be able to shed some light on. I have business lists of business objects that I edit in DevExpress XtraGrid’s. When the Add button is pressed in the Grid it fires the AddingNew event on the BindingSource where I create the new Business Object. After the new object has been added to the business list all is fine, the object has OnPropertyChanged events assigned in the BindableBase._nonSerializableHanders. As soon as I move to another row in the Grid somehow the object looses those events and BindableBase._nonSerializableHanders is null. This only happens when adding a new object.

 

Wayne

Copyright (c) Marimer LLC