private void button2_Click(object sender, EventArgs e) { string id = txtID.Text; DataProcess dp = new DataProcess(); dgvStaff.DataSource = dp.SearchStaff(id); }