here's a simple example, but you'll probably need to tie in column2 with the values in column1:
vb Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click DataGridView1.Columns.Add("Column2", "Column2") For x As Integer = 0 To DataGridView1.Rows.Count - 1 DataGridView1.Rows(x).Cells(1).Value = x Next End Sub




Reply With Quote