private void mtdCargar() { listValorAprox = new List <clValorAprox>(); objValorAprox = new clValorAprox(); listValorAprox = objValorAprox.mtdConsultaValorAprox(); dgvValorAprox.DataSource = listValorAprox; }
private void btnEliminar_Click(object sender, EventArgs e) { objValorAprox = new clValorAprox(); objValorAprox.idEmpresaProducto = idProductoBorrar; if (objValorAprox.mtdEliminar() > 0) { MessageBox.Show("Eliminado"); mtdCargar(); } else { MessageBox.Show("Error al Eliminar"); } }