E
_e_
The common approach to handling thread-to-UI sync seems to be Invoke
(as per Chris Sells "PI generator" etc).
Just wondering if there is any problem with having the thread write
data to shared variables and using a timer on the UI thread to check
for changes periodically.
I need to collect data a fill DataTables in the background, while
updating a DataGrid control. Since I have to collect and store the
data anyway, it seems like it would be just as easy to set up a timer
in the main (UI) thread.
Here's another issue: Are any problems encountered if a DataGrid
control is bound to a DataTable, and the background thread updates the
DataTable?
(as per Chris Sells "PI generator" etc).
Just wondering if there is any problem with having the thread write
data to shared variables and using a timer on the UI thread to check
for changes periodically.
I need to collect data a fill DataTables in the background, while
updating a DataGrid control. Since I have to collect and store the
data anyway, it seems like it would be just as easy to set up a timer
in the main (UI) thread.
Here's another issue: Are any problems encountered if a DataGrid
control is bound to a DataTable, and the background thread updates the
DataTable?