Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1100
Updating bound DataSet data on another thread
posted

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.

Parents
No Data
Reply Children