I have a GridView, and a Treeview in my application.
The Gridviews itemsource is binded to a wcf method call. After the grid view is populated, the gridview is grouped and the treeview is loaded with count of groupitems.
I wanted to move this to another thread, as it takes some time for the grid to populate. So I added a background worker. But I run into exception
"The calling thread cannot access this object because a different thread owns it."
Why is that so?
The Gridviews itemsource is binded to a wcf method call. After the grid view is populated, the gridview is grouped and the treeview is loaded with count of groupitems.
I wanted to move this to another thread, as it takes some time for the grid to populate. So I added a background worker. But I run into exception
"The calling thread cannot access this object because a different thread owns it."
Why is that so?