Private Sub Form1_Load(ByVal sender As System.Object, ByVal _
e As System.EventArgs) Handles MyBase.Load
DataGridView1.ColumnCount = 3
DataGridView1.Columns(0).Name = "First Name"
DataGridView1.Columns(1).Name = "Last Name"
DataGridView1.Columns(2).Name = "Occupation"
DataGridView1.Rows.Add(New Object() {"Rod", "Stephens", _
"Nerd"})
DataGridView1.Rows.Add(New Object() {"Sergio", _
"Aragones", "Cartoonist"})
DataGridView1.Rows.Add(New Object() {"Eoin", "Colfer", _
"Author"})
DataGridView1.Rows.Add(New Object() {"Terry", _
"Pratchett", "?"})
End Sub
|