string con = "Data Source=..\\SQLEXPRESS;Initial Catalog=Northwind;Integrated Security=True"; sda = new SqlDataAdapter("select name from sysobjects where xtype='U'", con); SqlCommandBuilder sc1 = new SqlCommandBuilder(sda); DataTable db1 = new DataTable(); sda.Fill(db1); bd1.DataSource = db1; dataGridView1.DataSource = bd1; comboBox1.DataSource = bd1;
comboBox1.DisplayMember = "name"; comboBox1.ValueMember = "name";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)