CHAPTER 22 ADO.NET PART II: THE DISCONNECTED LAYER
Deleted
The row has been marked for deletion using the Delete() method of the DataRow,
and AcceptChanges() has not been called.
Detached
The row has been created but is not part of any DataRowCollection. A DataRow is in
this state immediately after it has been created, but before it is added to a
collection. It is also in this state if it has been removed from a collection.
Modified
The row has been modified, and AcceptChanges() has not been called.
Unchanged
The row has not changed since AcceptChanges() was last called.
When you manipulate the rows of a given DataTable programmatically, the RowState property is set
automatically. For example, add a new method to your Program class, which operates on a local DataRow
object, printing out its row state along the way