Answer the question
In order to leave comments, you need to log in
DataGridView: how to make friends with multithreading?
C# application, UI on WinForms. There is a List in which objects are added and removed from different threads, their properties change. There is also a DataGridView on which these objects should be displayed and updated in real time. BindingList is not suitable, PropertyChanged events come from different threads.
As I imagine, you need to write a proxy class that will intercept the PropertyChanged and CollectionChanged events from the collection, marshal them to the UI thread, and then everything will work as it should.
Are there other ways to get it to work properly?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question