I have an WPF .NET 4.0 application which creates a TreeView in the main thread, and databinds it to a DataSet which contains two DataTables. The datatables have a simple relationship between them which represents a two-level tree. When the treeview
is initially drawn, it correctly displays all items from the two datatables as a two level tree.
When the DataTables are updated from the UI thread (add/delete/modify a row), the treeview is refreshed and the changes to the databound DataSet DataTables are visible in the treeview.
If changes to the DataTables are made from a ThreadPool thread, no exceptions are thrown, but the
UI is not updated. I am using a threadpool thread because the changes will be initiated from multiple network devices and processing their data is fairly CPU intensive.
I am assuming that change notifications are not being propogated across threads for DataSets/DataTables. Is this assumption correct? If so, are their recommended best practices to overcome this limitation?
View Complete Post