private void btnAddMember_Click_1(object sender, EventArgs e) { frmAddMember frm = new frmAddMember(); if (frm.ShowDialog() == DialogResult.OK) { PopulateGrid(); } }
private void dgvCustomers_DoubleClick(object sender, EventArgs e) { if (dgvMembers.CurrentCell == null) { return; } long PKID = long.Parse(dgvMembers[0, dgvMembers.CurrentCell.RowIndex].Value.ToString()); frmAddMember frm = new frmAddMember(PKID); if (frm.ShowDialog() == DialogResult.OK) { PopulateGrid(); } }