sql server - how to load data to many comboboxes from 1 database? -
Text after "div class =" itemprop = "text">
I had 2 source code for You set a different for your combo Required 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 ()
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
Post a Comment