Dim sum As Double
For i = 0 To ListView1.Items.Count - 1
sum = Val(ListView1.Items(i).SubItems(1).Text) - Val(ListView1.Items(i).SubItems(2).Text)
ListView1.Items(i).SubItems(3).Text = sum
Next
Tag : .NET, Ms SQL Server 2008, Win (Windows App), VB.NET