sqlConnection1.Open(); dt = new DataTable(); sqlDataAdapter1.Fill(dt); BindingSource bs = new BindingSource(); bs.DataSource = dt.DefaultView; Combobox1.DataSource = bs; Combobox1.DisplayMember = "Model"; Combobox1.ValueMember = "Model"; txtPrice.DataBindings.Add("Text", bs, "Price");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)