Returns the number of columns that have the modification tracking flag set to true.
A record with a greater than zero number of modified columns does not necessarily mean that Recordset.SaveChanges() will send the record to the database.
Modification tracking is done for all columns. This includes database-readonly, -identity and -expression columns. These columns are read-only and will be skipped by Recordset.SaveChanges().
If you want to know if a record has data that Recordset.SaveChanges will transmit to the database server, you need to call Record.PendingChanges instead.
This method is defined in the generated record code.
public int ModifiedColumnCount()
if (record.ModifiedColumnCount() > 0)
MessageBox.Show("The record was modified");