/// <summary> /// 记录查询=>查询按钮 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button3_Click(object sender, EventArgs e) { var data = _cos.JlCx(txtKey2.Text); var datainfo = _cos.Str2JlList(data); dataGridView2.DataSource = datainfo; }