How to display data into datagridview using multi thread?
I have application where I read/receive data all the time (text) and I need to display this data into datagridview, what is the best way to do that in real time, so the data will be changed all the time.
I thought about multi threading, if this is a good idea can you guide me with link to explain how to imple开发者_Python百科ment it.
Thanks
You can use a BackgroundWorker to execute a thread in the background to receive data. Then you need to use Control.Invoke to marshall calls to the UI thread to update data.
This link provides some example code you can use as a starting point.
精彩评论