01.
string
strProduct = textProduct.text ;
02.
string
strQty = textQty.text;
03.
04.
if
(listview1.items.count !=0)
05.
{
06.
for
(
int
i=0;i<listview1.items.count;i++)
07.
{
08.
if
(strProduct == listview1.items[i].subitems[
"product"
].text)
09.
{
10.
listview1.items[i].subitems[
"Qty"
].text = convert.toint32(listview1.items[i].subitems[
"Qty"
].text) + convert.toint32(strQty);
11.
return
;
12.
}
13.
else
14.
{
15.
16.
17.
}
18.
}
19.
}
else
{
20.
21.
22.
}