private void btnRetrieve_Click(object sender, EventArgs e) { string selected_email = dataGridView2.CurrentRow.Cells["Email"].Value.ToString(); string selected_name = dataGridView2.CurrentRow.Cells["FName"].Value.ToString(); string selected_surname = dataGridView2.CurrentRow.Cells["LName"].Value.ToString(); DialogResult dr = MessageBox.Show("Are you sure you want to retrieve " + selected_name + " " + selected_surname + "?", " ", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dr == DialogResult.Yes) { managment.RetrieveEmployee(selected_email); } else { this.Show(); } UpdateDataGridView(); }