2
Answers

Como evitar productos duplicados en un listview VB.NET 2010

Photo of Ivan Umaña

Ivan Umaña

8y
1k
1
Quiero preguntarles o pedirles un código para poder ingresar productos en un listview en vb.net 2010.    Lo que quiero hacer es lo siguiente: Es un form para ventas, yo desde un textbox ingreso el código de producto y después se muestra la información del producto en el listview con el código, nombre del producto, precio, cantidad, descuento, subtotal e impuesto.   Cuando ingreso el mismo producto, el se agrega en otra línea pero lo que quiero hacer es que en lugar de agregar otra línea con el mismo producto lo que quiero que haga es que la cantidad se aumente automáticamente y que no se agregue en otra línea a no ser que el producto sea diferente entonces sí que lo agregue en otra línea, la verdad llevo bastante tiempo intentándolo y no lo e logrado, si me puedes ayudar se lo agradecería mucho.

Answers (2)

0
Photo of Ivan Umaña
NA 4 1k 8y
I'm sorry, here is the information in english. 
 
Title: How to prevent duplicate records in listview Vb.NET 2010
 

I want to ask you for some tips if it is possible if not that is understandable

I’m creating an application to sell products in a supermarket.

What I want to do is the following:

It is a form for sales, from a textbox I input the product code and then the product information is displayed in the listview with the code, product name, price, quantity, discount, subtotal and tax. When I add the same product, it is added in another line but what I want to do is instead of adding another line with the same product, I want to increase the quantity automatically and not add it to another line unless it is a different product, I have been trying for a long time and I have not achieved it, if you can help me I would be very grateful.

I’m sorry if couldn’t post my code, I’m traveling right now.

Best regards,

 
0
Photo of Nilesh Shah
13 54.3k 1.4m 8y
Please post your question in english