BindingSource: BEFORE CurrentChanged?
-
Hello, I create controls dynamical by the values of the rows in my BindingSource. I do this in the event CurrentChanged. I add a control to a panel and bind this control to the BindingSource. the problem is: the current changes BEFORE I add the fitting control. that means a wrong (old) control might still exist when the BindingSource changes to another row. so the content might not fit for this control. the "old" is cleared and the new (fitting) one is added afterwards. how could I clear the old control BEFORE the "current Changed"? thank you!
-
Hello, I create controls dynamical by the values of the rows in my BindingSource. I do this in the event CurrentChanged. I add a control to a panel and bind this control to the BindingSource. the problem is: the current changes BEFORE I add the fitting control. that means a wrong (old) control might still exist when the BindingSource changes to another row. so the content might not fit for this control. the "old" is cleared and the new (fitting) one is added afterwards. how could I clear the old control BEFORE the "current Changed"? thank you!
instead of binding it in current change event... bind it item databound of that table VMSSanthosh
-
instead of binding it in current change event... bind it item databound of that table VMSSanthosh