List-bound DataGridView data not updated

I have a DataGridView data binding to a BindingSource, which in turn is connected to a list of objects. After the data bindings are configured, I populate the list from the background thread (of course, using Form.Invoke). The problem is that the Grid is not updating. In the debugger, I see that the BindingSource contains elements and the DataGridView is connected to it, but the elements are not displayed. What's wrong?

0
data-binding winforms
source share
1 answer

I get it. I need to use BindingList <> instead of List <>.

+1
source share

All Articles