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
310
ComboEditor and bindings
posted

Hi, I have a comboEditor binded with a System.Windows.Forms.Binding .

This combo is contained in a Tab... which is not usually on top...

The problem is... When I change the bindingposition, I'd like that my combo fires the "ValueChanged" event...

But this event is fired only if the combo is on top... How to fire ValueChanged even if the combo is not on top?

Tnx a llllot 

  • 469350
    Verified Answer
    Offline posted

     Hi,

        I've had this problem, too. Basically, the DotNet BindingManager does not update controls who's handles have not been created. So this means any control that has never been visible or is on a contain that has never been created doesn't get updated when you change the position of the BindingManager.

        To get around this, you have got to somehow force the control to get created. I've done this in the past by looping through the controls on the form and experimenting with methods like Refresh and CreateControl to force the control to create.