How to display data in datagridview using multiple threads?
I have an application where I am constantly reading / receiving data (text) and I need to display that data in a datagridview, which is the best way to do it in real time, so the data will keep changing.
I was thinking about multithreading, if it is a good idea, you can advise me on the link to explain how to implement it.
thanks
+2
a source to share
1 answer
You can use BackgroundWorker to run a thread in the background to get data. Then you need to use Control.Invoke to route calls to the UI thread to update the data.
This link contains some sample code you can use as a starting point.
0
a source to share