如何刷新TClientDataSet中的数据

2024-11-27 21:20:46
推荐回答(1个)
回答1:

SqlConnection con = new SqlConnectioncon.Open();string sqlstr = "旅搭御sql语拆岩句枝尺";SqlDataAdapter da = new SqlDataAdapter(sqlstr, con);DataSet ds= new DataSet();da.Fill(ds);dataGridView1.DataSource = ds.Tables[0];con.Close();