Changes the DataRow.Rowstate of a System.Data.DataRow to Modified.
Changes the DataRow.Rowstate of a System.Data.DataRow to Modified. If the current row is not in either an Unchanged or an Added state, it throws an InvalidOperationException with the message that SetModified can only be invoked on a DataRow instance where the RowState is Unchanged.