Detecting Dirty Data in local DataTables

This might be a pretty easy question, but I am very new to ADO.NET..
Here is the scenario, there are 2 users viz. A and B. User A has a local copy of a DataTable and user B has his own copy of the DataTable. User A has the screen showing a datagrid with the table values. Now user A goes for lunch and user B updates the datatable to the database.
User A on coming back does not realize that his data is 'dirty and makes updates and commits them to the database thus resulting in an incorrect operation. How do I detect such kind  of changes and let user A know that the data he is updating is stale, or even better, refresh his screen once the data has been modified outside of the local copy.
Thanks in advance


Answer this question

Detecting Dirty Data in local DataTables

  • Paul Seaton-Smith

    My business partner, Brian Randell, wrote a very compelling demo on this topic for the folks at Microsoft. It was supposed to be posted on the MSDN site some time ago, but hasn't quite made it there yet. We're working on it. You might check the MSDN site in the next week or so -- we're working on it.
  • Rothariger

    In fact, Brian Randall is the very reason that I ever got excited about .NET in the first place..
  • Detecting Dirty Data in local DataTables