c# datagridview 不能正常显示数据

2025-03-01 00:02:44
推荐回答(2个)
回答1:

在 adapter.Fill(this.ds, "student"); 后面加的 dataGridView1.DataSource = this.ds.Tables[0];

回答2:

string sql=string.Format("select * from student where S_no='{0}'",ID);