Hello,
I have a XamDataGrid that is bound to a DataSet. I would like to continuously and asynchronously update the DataSet on a thread (record adds, record deletes, and record updates). At the same time, I want to keep the users current position in the grid (unless of course they are on a record that gets deleted).
From what I have read on this forum, the grid doesn't support thread updates to its DataSource. As a workaround, I have considered the idea of:
* Sending the grid's DataSet to a thread.
* Duplicating the DataSet into a separate instance.
* Updating the duplicate DataSet.
* Forcibly merging the changes back into the original DataSet on the UI thread.
While this in theory should work, duplicating and merging DataSets can be very time-costly for large amounts of data. Are there any alternatives?
Thanks.
Ken,
Good approach would be to Marshall the updates onto the UI thread via a timer or calling begininvoke.
Sam
I'll give it a try. Thanks!