A
Alex
Hey Guys,
I'm sure there's a simple solution for this, but I'm not finding it.
I'm in VB 2005 and trying to manually populate a Data Grid View, not
using a datasource or anything.
I've added my dgv to the form and added the columns:
me.dgvPerson.Columns.Add("Name","Name")
me.dgvPerson.Columns.Add("Address","Address")
me.dgvPerson.Columns.Add("City","City")
me.dgvPerson.Columns.Add("State","State")
me.dgvPerson.Columns.Add("Zip","Zip")
And now i'm populating it by looping through a custom object stored in
a collection, so I'm doing a For Each through the collection and
manually inserting the values from the object into the dgv. Problem
is, since i'm not populating it from a datatable or dataset, I'm
having a heck of a time finding documentation showing how to add the
fields manually.
Suggestions?
Thanks --
Alex
I'm sure there's a simple solution for this, but I'm not finding it.
I'm in VB 2005 and trying to manually populate a Data Grid View, not
using a datasource or anything.
I've added my dgv to the form and added the columns:
me.dgvPerson.Columns.Add("Name","Name")
me.dgvPerson.Columns.Add("Address","Address")
me.dgvPerson.Columns.Add("City","City")
me.dgvPerson.Columns.Add("State","State")
me.dgvPerson.Columns.Add("Zip","Zip")
And now i'm populating it by looping through a custom object stored in
a collection, so I'm doing a For Each through the collection and
manually inserting the values from the object into the dgv. Problem
is, since i'm not populating it from a datatable or dataset, I'm
having a heck of a time finding documentation showing how to add the
fields manually.
Suggestions?
Thanks --
Alex