A
admlangford
Hi, I have a collection of objects which I am storing in a list
the object looks like this
struct Person
{
public int age;
public string name;
}
I then have a function (FunctionGetAllPeople) which returns a
List<Person> and all I am trying to do is bind the collection to the
DataGridView on a Windows Form
PersonDataGridView.DataSource = FunctionGetAllPeople();
Whenever I call the function it actually returns a collection of
people but my DataGridView on my Windows Form is never updated; it's
always empty....
Any suggestions appreciated!!
Thanks
Adam
the object looks like this
struct Person
{
public int age;
public string name;
}
I then have a function (FunctionGetAllPeople) which returns a
List<Person> and all I am trying to do is bind the collection to the
DataGridView on a Windows Form
PersonDataGridView.DataSource = FunctionGetAllPeople();
Whenever I call the function it actually returns a collection of
people but my DataGridView on my Windows Form is never updated; it's
always empty....
Any suggestions appreciated!!
Thanks
Adam