Although there are a lot of posts on this site about populating a gridview with objects, I can't get it working.
I have a class called Logs with 3 public properties - Time, Description and Error. There is also a public property called logList that will return a List of Logs Objects.
And I have DataGridView in my WinForm, called myGV, with 3 columns called Time, Description and Error.
So I'm trying:
myGV.DataSource = Logs.logList.OrderBy(x => x.Time);
But my DataGridView displays nothing, even though logList does contain data.
Thanks for your work on this site!
UPDATE: If I remove all columns from myGV it does display data. So how do match static columns to the properties in my List of Objects?