private void btnDelete_Click(object sender, EventArgs e) { try { string prog_id = dataGridViewControl2.GetCheckIDs("PROG_ID"); if (string.IsNullOrEmpty(prog_id)) { return; } if (authorityService.DeleteProgramAth(ath_grp_id, prog_id)) { MessageBox.Show("정상적으로 삭제되었습니다."); LoadData(); } } catch (Exception err) { MessageBox.Show(err.Message); } }