Hi Adam ,
Thank you for reporting this issue.
The ImportRow method does not change the RowState property of the row.
From the online help...
"Calling ImportRow preserves the existing DataRowState, along with other values in the row."
Since the row is in a "detached" state, adding it to a table via ImportRow would put the row in a conflicting state; added to a collection but still in a detached
state.
This issue has been brought up before and is being handled as a documentation issue so that future documentation will be more clear on this.
Sincerely,
Rick[MSFT]
Microsoft Corp.
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.