mySqlCnnection.Open();
string list = "select * from login";
MySqlDataAdapter dataadapter = new MySqlDataAdapter(list, mySqlCnnection);
DataSet ds = new DataSet();
dataadapter.Fill(ds, "login");
dataGridView1.DataSource =ds.Tables[0];
我想在 datagridview 中显示整个登录表数据,但得到一个空的小部件?有人可以吗?