Hello all,
Im having this strange problem with DevExpress LookUpEdit.DataBinding.Add(), while i tried it at first was working in a couple of controls, then started to programming for all the controls i have and everything stopped woriking. The DataSource is a BindingSource of 1 object and the lookupedits are populated with different List<>'s. Even the SpinEdits and TextEdits not working correctly, or the Labels.Text. So i suppose this is not only for the LookUpEdit, but cannot find what i have changed and stopped working everything. DataBinding is not reflecting either on the DataSource or in controls!
Bind to populated LookUpEdit:
LookUp.DataBindings.Add("EditValue", MyObjectBinding, "PropertyReflectsEditValue",
false, DataSourceUpdateMode.OnPropertyChanged);
The MyObjectBinding:
MyObjectBinding.DataSource = typeof(MyObject);
MyObjectBinding.DataSource = myObject;
Same path is for all other controls binding appropriate property in myObject Property! What is going on for this simple task??