public void dataGrid_UserDeletingRow(DataGridViewRowCancelEventArgs e) { if (current_view == null) { return; } try { current_view.dataGrid_UserDeletingRow(e); } catch (Exception exp) { MessageBox.Show(main_form, "There is a problem removing this row.\n" + "Another table may relay on this entry or\n" + " you do not have permission to delete this row." , "Error"); throw exp; } }