The .AcceptChanges() method sets all rowstates in the table to unchanged. There is also an .AcceptChanges() method on the DataRow itself, so you could also do it one row at a time if you needed to.
~~Bonnie
>Hi,
>I created datatable act as temporary "cursor". My program will loop thru this datatable and check for rowstate to determine whether insert/update/delete record from underlying table.
>
>How could I retain content of datatable.rows but set their rowstate to unchanged?
>
>Thank you