Repeat for each row in Datagridview

JonathanP

Member
Joined
Nov 7, 2012
Messages
8
Programming Experience
Beginner
Hi

I have the following piece of code and I would like to be able to repeat (loop?) for each row on the datagridview up to row 20. Would someone be able to assist me in achieving this?

Thanks

<unreadable code removed by moderator>
 
Please just post your code as plain text in the appropriate formatting tags. When you click the button to add the tags, the option value must be "vb", as it says in the site FAQ.
 
Re post of code

If CInt(Table_1DataGridView.Rows(0).Cells(109).Value) = 0 Then
            Table_1DataGridView.Rows(0).Cells(5).Value = ((CInt(Table_1DataGridView.Rows(0).Cells(56).Value) / 100) * CInt(Table_1DataGridView.Rows(21).Cells(5).Value)) + CInt(Table_1DataGridView.Rows(0).Cells(56).Value)
        Else
            Table_1DataGridView.Rows(0).Cells(5).Value = (((((CInt(Table_1DataGridView.Rows(0).Cells(108).Value) + CInt(Table_1DataGridView.Rows(0).Cells(109).Value)) / 2) / 100) * CInt(Table_1DataGridView.Rows(21).Cells(5).Value)) + ((CInt(Table_1DataGridView.Rows(0).Cells(108).Value) + CInt(Table_1DataGridView.Rows(0).Cells(109).Value)) / 2)) / 14
        End If
 
Last edited:
Back
Top