public void loading1() { cn.Open(); da1 = new SqlDataAdapter("SELECT TOP 10 * FROM Phone_Number;", cn); ds1 = new DataSet(); da1.Fill(ds1); if (ds1.Tables[0].Rows.Count > 0) { //comboBox1.Items.Clear(); for (int i = 0; i < ds1.Tables[0].Rows.Count; i++) { dataGridView1.DataSource = ds1.Tables[0]; } } cn.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)