Why DataGridView does not display the DataSource?

In short
DataGridView.AutoGenerateColumns = true;
DataGridView.DataSource = BindingSource.DataSource = List<myobject>;</myobject>

Add to List (DataGridView and BindingSource).The DataSource is also updated, but the data are not displayed. Initially the List is empty.
July 2nd 19 at 17:28
1 answer
July 2nd 19 at 17:30
I saw at least 4 such question, Google first...

And you will help the ObservableCollection
There are thousands of such questions. I just can not catch up with. There is a EF context. If the database has occurred then call the Insert method with the body of the DataGridView.DataSource = ctx.MyObjects.ToList() and then everything works, but that's for another DataGrid'and. And everything works. Another DataGrid made on the same principle. But the one that interests me doesn't want to work with the local collection. Used The BindingSource. The situation has not changed. I have not worked with WinForms, for this I ask here. Maybe there's some method a La RenderViewWithNewData - verda_Cronin commented on July 2nd 19 at 17:33
And why I'm looking for a solution in the form RenderViewWithNewData? Because I don't understand what the guys DataSource all fresh, and no data in the View. - verda_Cronin commented on July 2nd 19 at 17:36
When I add something in the List<> it is simply added and that's all. In such a situation, the grid does not know what data was updated and just does nothing. But if you use ObservableCollection, then when you add it I would say that the collection has changed. Grid really needs to hear and sincerity new view. - buford_Hand41 commented on July 2nd 19 at 17:39
:
everything works, but that's for another DataGrid'and. And everything works. Another DataGrid made on the same principle. But the one that interests me doesn't want to work with a local collection

One works and the other exactly the same - no?
Well, probably grids differ somewhat. You created them with designer forms? Then look in the file ***.Designer.cs in it all the properties of each grid.
So it is necessary to do, and not to read tea leaves. - mazie.Towne commented on July 2nd 19 at 17:42

Find more questions by tags .NET