I read data through WebSocket, the data gets into the project infrastructure and is processed, then added to the collection. During operation, multithreading is used, but as it is necessary to display these collections on the form, I display them via DataGridView.DataSource = List <...>. The data is not added during processing when the form is open, so the collection is blocked from being added and is waiting to be re-bound. Tell me how to call a specific method, for example, Add - add data to the collection in the UI stream?
myWindow.Invoke(new Action(() =>{ /*......*/ }));? - tym32167BindingListorObservableCollectioninstead of a simpleList. Items within the collection must have theINotifyPropertyChangedinterfaceINotifyPropertyChanged. - Alexander PetrovListBoxupdated dynamically from another thread (linked to aBindingListand usingInvoke). But with aDataGridViewthe situation is bad. Probably, it is in its internal structure. - Alexander Petrov