Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27513

[RESOLVED] Getting values from a DataGridView table

$
0
0
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)


Viewing all articles
Browse latest Browse all 27513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>