Dim I As IntegerItemLoc Dim As Integer = -1For I = 0 To DGV2.Rows.Count - 1If R.Scannummer DGV2.Rows = (I). Cells (0). Value Then'Item foundItemLoc = IExit Forend IfNext'If item is not found, add itIf ItemLoc = -1 ThenDGV2.Rows.Add (R.Scannummer, R.ProductId, R.Productomschrijving, R.CategorieId, R.Productnaam, R.KleurId, R.MaatId, R.Verkoopprijs, 1, R.Verkoopprijs)else'If item is already there increasefontsize its countItem Dim Count As Long = CLng (DGV2.Rows (ItemLoc). Cells (8). Value)Item Count = 1Dim newPrice As Decimal = CDec (R.Verkoopprijs * Item Count)DGV2.Rows (ItemLoc). Cells (8). Value = Item CountDGV2.Rows (ItemLoc). Cells (9). Value = newPriceend If