help please, i really need to solve this one.
when the quantity of the product is increasing/decreasing, i want the Total Price to update/increase/decrease also, but its only remain working.
the button is declare, so when i click the button , all of the info of that will be transfer/view in listview.
Dim tbl As New Button
tbl.Name = "" & rd.Item("nod").ToString()
tbl.Text = tbl.Name
tbl.Tag = "" & rd.Item("price").ToString()
''''this code is in other class''''
Dim item as listviewItem
item = lvorder.Items.Add("1") 'QTY
item.SubItems.Add(btn.Name) 'Name of Dish
item.SubItems.Add(btn.tag) 'Rate
item.SubItems.Add((1 * Val(btn.tag)).ToString) 'Total Price
For i As Integer = 0 To lvorder.Items.Count() - 1
If lvorder.Items(i).SubItems(1).Text = btn.Text Then
lvorder.Items(i).Text = (Val(lvorder.Items(i).Text) + 1).ToString
lvorder.Items(i).Subitems(3).Text = (Val(lvorder.Items(i).Text) * Val(lvorder.Items(i).Subitems(2).Text)).ToString 'for Total Price
ProdMatch = True
Exit For
End If
Next