This code will change the title of the column in DataGridView1
Violin, but I want to change the title of the second column of the Cells(1).Value
And the third column and fourth to no end
PHP Code:
For i As Integer = 0 To DataGridView2.Rows.Count - 1
If DataGridView2.Rows(i).Cells(0).Selected = True Then
DataGridView1.Columns(0).HeaderText = DataGridView2.Rows(i).Cells(0).Value
End If
Next