Populate ComboBox from results of another combobox...

C

Chris

This actually stemmed from anther post I created.

But, I have two combo boxes. ComboBox1 is populated by a list of Systems
(DataSet from Oracle Query).

Now, I want to take Combobox2, and when the data is changed on Combox1, I
want to populate data depending on the selection in Combox1.

So, ComboBox1 lists "OracleDB123". I want ComboBox2 to list all accounts on
that system. That information is stored in say the Accounts
table(AccountName).
 
K

kimiraikkonen

This actually stemmed from anther post I created.

But, I have two combo boxes.  ComboBox1 is populated by a list of Systems
(DataSet from Oracle Query).  

Now, I want to take Combobox2, and when the data is changed on Combox1, I
want to populate data depending on the selection in Combox1.

So, ComboBox1 lists "OracleDB123".  I want ComboBox2 to list all accounts on
that system.  That information is stored in say the Accounts
table(AccountName).

If your Combobox1 is bound to a DataSource, Combobox control has a
"DataSourceChanged" event that may let you know when the source is
changed. Also (sometimes not an efficent idea), you can use a timer
control to check combobox1's items collection within specified
interval.

HTH,

Onur Güzel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top