using (SqlConnection cs = new SqlConnection( @"Data Source=100-olkj-900-ptalog=Report;Persist Security Info=True;User ID=reports;Password=password { cs.Open(); using DataAdapter da = new SqlDataAdapter(query { // 3 DataTable t = new DataTable(); da.Fill(t); // 4 // Render data onto the screen comboBox1.DataSource = t; // <-- From your designer comboBox1.DisplayMember = "station.stationipaddress"; comboBox1.ValueMember = "station.stationipaddress"; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)