我正在尝试使用此代码显示在根据先前标记的字段研究信息的网格上
SQL = "SELECT * FROM funcionario WHERE setor ='" + TxtPesq.Text + "'"
myCommand.Connection = conn
myCommand.CommandText = SQL
myAdapter.SelectCommand = myCommand
myAdapter.Fill(myData)
DataGridView1.DataSource = myData