// Al hacer click en "Eliminar" private void botonera1_Click_Baja(object sender, EventArgs e) { if (dgv_datos.CurrentRow == null) { MessageBox.Show("Debe seleccionar un perfil para eliminar."); return; } try { DialogResult Rta = MessageBox.Show("¿Confirma la eliminación del perfil?", "Baja", MessageBoxButtons.YesNo); if (Rta == DialogResult.Yes) { Modelo_Entidades.Perfil oPer = (Modelo_Entidades.Perfil)dgv_datos.CurrentRow.DataBoundItem; cPerfil.BajaPerfil(oPer); MessageBox.Show("El Perfil fue eliminado"); Arma_Lista(); } else { return; } } catch (Exception Exc) { MessageBox.Show(Exc.InnerException.ToString()); } }