I have two DGV tables. I want to take data from the first, DGV1, perform some mathematical processes and put the results in DGV2. I have the declarations below. The DGV1().Item.Value sizes change each time the counter changes but the letters "a" through to "g" do not. Please point me in the righr direction. Thanks
Code:
Dim i As Integer 'counter
Dim a As Integer = CInt(DGV1.Item(2, i).Value)
Dim b As Integer = CInt(DGV1.Item(3, i).Value)
Dim c As Integer = CInt(DGV1.Item(4, i).Value)
Dim d As Integer = CInt(DGV1.Item(5, i).Value)
Dim f As Double = CInt(DGV1.Item(6, i).Value)
Dim g As Integer = CInt(DGV1.Item(8, i).Value)
z = DGV1.RowCount
For i = 0 To (z - 1)