private void btnEliminarLogico_Click(object sender, EventArgs e) { PropiedadNegocio negocio = new PropiedadNegocio(); try { negocio.eliminarLogico((int)dgvPropiedades.CurrentRow.Cells[0].Value); cargar(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }