views:

48

answers:

1

Hi,

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 implement it.

Thanks

A: 

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.

Justin Ethier