private void profile_dgv_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == Keys.Enter) { try { Form A = new PersonView(int.Parse(profile_dgv.SelectedRows[0].Cells["profileid"].Value.ToString()), dh); A.ShowDialog(); } catch { } } }
private void profile_dgv_MouseDoubleClick(object sender, EventArgs e) { Form A = new PersonView(int.Parse(profile_dgv.SelectedRows[0].Cells["profileid"].Value.ToString()), dh); A.ShowDialog(); }
private void openPersonView(int profileID) { PersonView pv = new PersonView(profileID, dh); pv.ShowDialog(); }