In a Winforms application , I have to log all changes to the datagrid (datatable) . In other words, I want to get all the changes since it was downloaded. For this, I want to use Datatable.GetChanges () . I know that with GetChanges () I get a datatable containing a copy of all the rows in the original DataSet that have pending changes.
Now my question is if additional additional information about the changes can also be obtained . For example, I want to know whether the line is added or removed , or has only been updated . If the row was updated , I also want to know which cells have been updated? Is there a way to get all this information quickly or do I need to do a deep row-by-row comparison with the original datatable ?
Or is it better to use RowState to get all the changes?
source
share