Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
646
WinComboEditor DataBinding
posted

Hi there,

I have a WinComboEditor bound to a Linq2Entity Object (normal Winfoirms Databinding).

Everything works fine and as excpected, except that when I set the SelecteItem programatically, the "Set" operation in the Linq2Entity object is not called. If I click into the combo and then tab out it gets fired.

 

Any ideas?

 

[Edit]...setting the focus to the combo of course. Silly me :-)

  • 469350
    Verified Answer
    Offline posted

    Hi,

    I'm pretty sure this is not limited to UltraComboEditor or Linq. I think the BindingManager only looks at a bound control when it has the focus. So you will get the same behavior with the inbox ComboBox, TextBox, or any control.

    Typically, if you are setting a value in code, it's best to set the value on the underlying data entity, rather than through the UI.