|
I want to create two custom work item controls. Each control will be a drop down list box. In the InvalidateDatasource() method of Control1, I retrieve information from a database, populate the drop down list box, check to see if a value has already been selected for the list box, and if so, set the list box equal to that value. I've got this working (which is pretty cool!).
Now, based on the contents of the first drop down list box, I want to filter what contents are in the second drop down list box, called Control2 (picture Control1 being a list of states, and Control2 being a list of cities, specific to which state is selected in Control1). How do I, from Control1.InvalidateDatasource(), trigger Control2.InvalidateDatasource()?
Control2.InvalidateDatasource() was where I was going to put the code to populate Control2 appropriately?
Control1 and Control2 are both user controls in the same assembly.
Does that make any sense, or do I need to provide more details?
VSTS MVP; http://www.teamsystemrocks.com/blogs/mickey_gousset |