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:
- DataTable gets loaded in TDADataTable
- Some stored procedure changes field ‘myfield’ from ‘origval’ to ‘newval’
- In DA DataTable we perform other tasks and set ‘myfield’ to ‘origval’
- 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?