sql server - how to load data to many comboboxes from 1 database? -


Text after "div class =" itemprop = "text">

I had 2 source code for comboboxes and ii table 1, but when selecting data Form combobox2 also ComboBox1 , change the same as I want to make your selection with different value.

  cn.Open () sql1 = "Select from Table_Illness *" dim = da SqlDataAdapter (sql1, cn) da.Fill (dataset, "Table_Illness") beforillnessComboBox.DataSource = Dataset.Tables ("Table_Illness") beforillnessComboBox.DisplayMember = ("Illness_Name") beforillnessComboBox.ValueMember = ("Illness_ID") afterillnessComboBox.DataSource = Dataset.Tables ("Table_Illness") afterillnessComboBox.DisplayMember = ("Illness_Name") afterillnessComboBox.ValueMember = (" Illness_ID ") cn.Close ()    

You set a different for your combo Required

  dim bs = new binding source () B.Datasource = Dataset Tables ("Tables_Ilnness") Béfrontillins Columbobox Data ource = bs beforillnessComboBox.DisplayMember = beforillnessComboBox.ValueMember = ("Illness_ID") BS = new binding resource () bs.DataSource = Dataset.Tables ("Table_Illness") afterillnessComboBox.DataSource = bs afterillnessComboBox.DataSource = Dataset Tables ("Table_Illness") afterillnessComboBox.DisplayMember = ("Illness_Name") afterillnessComboBox.ValueMember = ("Illness_ID")    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -