Forcing a field to update for delta updates

I am using a RO DataTable to view and edit a DB table

At the same time however I perform DB stored procedures which modify the some if the same fields.

I am now running into an issue that my ApplyUpdates does not update a particular field because I use DA delta changes which does not update because it does not know about the change.

This is what happens chronologically:

  1. DataTable gets loaded in TDADataTable
  2. Some stored procedure changes field ‘myfield’ from ‘origval’ to ‘newval’
  3. In DA DataTable we perform other tasks and set ‘myfield’ to ‘origval’
  4. We call DataTable.ApplyUpdates()

The SQL update statement will not contain ‘myfield’ because the DataTable believes it is not modified

I would like to set this ‘myfield’ to ‘dirty/modified’ manually.

Is this possible?

Can I just change the value twice? Is this a future proof solution?

Hi,

I can suggest:

OK, thanks,

These are all quite laboursome however.

After my post I found this issue in talk so I went with this approach

I assume this is also future proof