Populate ComboBox from results of another combobox...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Q2hyaXM=?=

    Populate ComboBox from results of another combobox...

    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 "OracleDB12 3". I want ComboBox2 to list all accounts on
    that system. That information is stored in say the Accounts
    table(AccountNa me).


  • kimiraikkonen

    #2
    Re: Populate ComboBox from results of another combobox...

    On Sep 30, 12:40 am, Chris <Ch...@discussi ons.microsoft.c omwrote:
    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 "OracleDB12 3".  I want ComboBox2 to list all accounts on
    that system.  That information is stored in say the Accounts
    table(AccountNa me).
    If your Combobox1 is bound to a DataSource, Combobox control has a
    "DataSourceChan ged" 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

    Comment

    Working...