Recording Changes of a DataRow

  • Thread starter Thread starter Dave Wurtz
  • Start date Start date
D

Dave Wurtz

All,

Is there a way to find out what changed on a DataRow? I know that the
RowState will be set to Modified, but is there a 'built-in' way to find out
that field1 changed from 'A' to 'B'?

Thanks in advance!

Dave Wurtz
Advanced Software Designs
 
Hi Dave,

There isn't a 'built-in' way to find out which field changed from 'A' to
'B', but you can try to compare the current version of DataRow with the
original version of it. To get the original version, you can use
datarow["ColumnName",DataRowVersion.Original].

For more information about how DataRowVersion functions in DataRow, you
could refer to this link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemdatadatarowversionclasstopic.asp

If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Back
Top