For each row as DataGridViewRow in DataGridView1.Rows If row.Cells(2).Value = "PAN-NEW" Then quantitySum = quantitySum + Integer.Parse(row.Cells(4).Value) End if Next
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter