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 (FunctionGetAll People) which returns a
List<Personand all I am trying to do is bind the collection to the
DataGridView on a Windows Form
PersonDataGridV iew.DataSource = FunctionGetAllP eople();
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 (FunctionGetAll People) which returns a
List<Personand all I am trying to do is bind the collection to the
DataGridView on a Windows Form
PersonDataGridV iew.DataSource = FunctionGetAllP eople();
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
Comment