Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. var listProductoPrecio =
  2. _saProductoPrecio.ListaProductoPrecio(Convert.ToInt32(txtListaPrecioId.Text)).ToList();
  3.  
  4. foreach (var item in listProductoPrecio)
  5. {
  6. DataGridViewRow row = new DataGridViewRow();
  7. row.CreateCells(dgvProductoPrecio);
  8. row.Cells["colProductoPrecioId"].Value = item.ProductoPrecioId;
  9. row.Cells["colListaPrecioId"].Value = item.ListaPrecioId;
  10. row.Cells["colProductoId"].Value = item.ProductoId;
  11. row.Cells["colProducto"].Value = item.NombreProducto;
  12. row.Cells["colTipoPrecioId"].Value = item.TipoPrecioId;
  13. row.Cells["colProductoPrecio"].Value = item.NombreTipoPrecio;
  14. row.Cells["colCantidad"].Value = item.Cantidad;
  15. row.Cells["colPrecioCompra"].Value = item.PrecioCompra;
  16. row.Cells["colUtilidad"].Value = item.Utilidad;
  17. row.Cells["colPvp"].Value = item.Pvp;
  18. dgvProductoPrecio.Rows.Add(row);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement