c# - How to refresh component on page after a change on the screen -


i have form contains tab control. 1 tab has 1 user control, has different user control. first tab has bunch of check boxes. based on selection of checkboxes, combobox on other tab populated different data. problem is, user controls both loaded when form loaded, data combo box set. want reload data in combobox when selection on other tab changes. i'm not sure how accomplish because can't directly call method in 1 user control other. coworker suggested event actions. or advice appreciated.

you use enter event on tabs , put refresh code in there. solution not perfect because pages won't refresh until "enter" them through tabcontrol.

another other option keep reference tabcontrol inside each page , upon data update, refresh pages listening data.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -