StrataFrame Forum

RestoreCurrentDataTableSnapshot and BrokenRules

http://forum.strataframe.net/Topic26722.aspx

By Edhy Rijo - 4/1/2010

Hi Trent,



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.



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?



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.



Please advice.