﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » RestoreCurrentDataTableSnapshot and BrokenRules</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 04:15:08 GMT</lastBuildDate><ttl>20</ttl><item><title>RestoreCurrentDataTableSnapshot and BrokenRules</title><link>http://forum.strataframe.net/FindPost26722.aspx</link><description>Hi Trent,&lt;br&gt;
&lt;br&gt;
I use a lot the BO.RestoreCurrentDataTableSnapshot() method and noticed that prior to calling the bo.RestoreCurrentDataTableSnapshot() if I had triggered a broken rule then the error provider icon will stay next to the control.&lt;br&gt;
&lt;br&gt;
Looking at the bo.Undo() code I noticed that the _BrokenRules and _ErrorProvider are being cleared, but not in the RestoreCurrentDataTableSnapshot, should this method also clear those collections?&lt;br&gt;
&lt;br&gt;
For now I am simply calling the bo.Undo() prior to bo.RestoreCurrentDataTableSnapshot to take care of the situation, since I do not have access to the _BrokenRules and _ErrorProvider collections knowing that I am basically undoing twice.  &lt;br&gt;
&lt;br&gt;
Please advice.</description><pubDate>Thu, 01 Apr 2010 13:49:06 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>