在 adapter.Fill(this.ds, "student"); 后面加的 dataGridView1.DataSource = this.ds.Tables[0];
string sql=string.Format("select * from student where S_no='{0}'",ID);