COL1 COL2 COL3 ITEM1 1 1 ITEM2 2 1 ITEM3 3 2 ITEM4 4 2 ITEM5 5 3 ITEM6 6 3 ITEM7 7 4 ITEM8 8 4 ITEM9 9 5 ITEM10 10 5 ITEM11 11 6 ITEM12 12 6 ITEM13 13 7 ITEM14 14 7
DGV.Rows(0).Cells(2).Value =1 DGV.Rows(1).Cells(2).VALUE = 1+ DGV.Rows(0).Cells(2).Value DGV.Rows(2).Cells(2).VALUE = 1+ DGV.Rows(1).Cells(2).Value DGV.Rows(3).Cells(2).VALUE = 1+ DGV.Rows(2).Cells(2).Value DGV.Rows(4).Cells(2).VALUE = 1+ DGV.Rows(3).Cells(2).Value DGV.Rows(5).Cells(2).VALUE = 1+ DGV.Rows(4).Cells(2).Value DGV.Rows(6).Cells(2).VALUE = 1+ DGV.Rows(5).Cells(2).Value DGV.Rows(7).Cells(2).VALUE = 1+ DGV.Rows(6).Cells(2).Value DGV.Rows(8).Cells(2).VALUE = 1+ DGV.Rows(7).Cells(2).Value DGV.Rows(9).Cells(2).VALUE = 1+ DGV.Rows(8).Cells(2).Value DGV.Rows(10).Cells(2).VALUE = 1+ DGV.Rows(9).Cells(2).Value DGV.Rows(11).Cells(2).VALUE = 1+ DGV.Rows(10).Cells(2).Value DGV.Rows(12).Cells(2).VALUE = 1+ DGV.Rows(11).Cells(2).Value DGV.Rows(13).Cells(2).VALUE = 1+ DGV.Rows(12).Cells(2).Value DGV.Rows(14).Cells(2).VALUE = 1+ DGV.Rows(13).Cells(2).Value
For i As Integer = 0 To 14 DGV.Rows(i).Cells(2).Value = i + 1 Next
For i As Integer = 0 To 14 DGV.Rows(i).Cells(2).Value = i + 1 DGV.Rows(i).Cells(3).Value = (i + 2) \ 2 Next
For row As Integer = 1 To 14 DGV.Rows(row).Cells(2).Value = row Next
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)