this.oleDbConnection1.Open();
string command = "select "+shuchuziduan+" from 学生信息 where "+this.suoyin1.Text.Trim()+" like '%"+guanjianzi.Trim()+"%' "; OleDbDataAdapter myda = new OleDbDataAdapter(command,this.oleDbConnection1);
DataSet ds = new DataSet();
myda.Fill(ds,"学生信息");
this.dataGrid1.DataSource=ds.Tables["学生信息"];
oleDbConnection1.Close();
ds.Dispose();
myda.Dispose();
this.oleDbConnection1.Close();