Updating databound control from another thread
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi there, I have a DataGridView bound to a BindingSource, and this BindingSource is bound to a BindingList of custom objects. The list is updated from another thread, and when it tries to update the DataGridView it (understandably) crashes because the control was created in the main thread while the list was updated in a worker thread. I know you can use Invoke to solve cross threading problems but in this case I have no clue on what event I should use Invoke. I dont even know if I should be looking at the BindingSource or the DataGridView itself. I've ran out of ideas and Im finding this pretty frustrating, any help would be greatly appreciated. Thanks in advance!