﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » Set rowstate</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 01:51:04 GMT</lastBuildDate><ttl>20</ttl><item><title>Set rowstate</title><link>http://forum.strataframe.net/FindPost7275.aspx</link><description>Hi,&lt;BR&gt;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.&lt;/P&gt;&lt;P&gt;How could I retain content of datatable.rows but set their rowstate to unchanged?&lt;/P&gt;&lt;P&gt;Thank you</description><pubDate>Fri, 02 Mar 2007 16:48:15 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Set rowstate</title><link>http://forum.strataframe.net/FindPost7284.aspx</link><description>On a DataRow like that, you have two options: you can call .RejectChanges() on the row, which will undo any changes to the data and mark the record as unchanged, or you can call .AcceptChanges() which will accept any changes you have made (retaining the data) and mark the row as unchanged.&lt;/P&gt;&lt;P&gt;Along the same line, if you call .SetAdded(), .SetModified() and I believe .SetDeleted() on the row, you can move it from an unchanged state to the corresponding state.</description><pubDate>Fri, 02 Mar 2007 16:48:15 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>