Hey I need help from danniweb .
I try some codes according to my knowledge to make this code.
I load some valuse to data grid view from mysql table. Think there are 10 records loaded to data grid view. Then just I want to make 10 records to generate code.
I'm trying this: But it wont help.

    Dim counter As Integer
        Dim i As Integer
        Dim rec As Integer = 100
        For counter = 0 To (DataGridView1.Rows.Count - 1)
            'MessageBox.Show(counter)
            DataGridView3.Rows(i).Cells(0).Value() = counter
            'DataGridView3.Rows(i).Cells(0).Value() = rec + counter
        Next

In this code make this, >>> code retrive how many records on data grid view and count. then number of records+100 and put 104 answer as first record. just that. But I want to put it one by one down.

You use i in line 6 but it is not defined.

What is happening when yu run ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.