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
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