Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
The Requery() method on the list controls (ComboBox, ListBox, CheckedListBox, ListView, etc) is exposed for this exact purpose. Say you have two combo boxes... the child combo box is populated according to the selected value of the parent. In the SelectedIndexChanged event (or where ever else you may need to repopulate it) of the parent, put the call to Requery() on the child. The child will then behave as if it had never been populated and it will clear itself and repopulate.
Just so you know... the Requery event takes a parameter array. The parameters accepted by the list are the same parameters you need to pass to the method you selected in the PopulationDataSourceSettings for the ComboBox. If you don't pass any parameters, then you can supply them through the ListPopulating event of the ComboBox (which you're probably already doing).
|