RestoreCurrentDataTableSnapshot and BrokenRules


Author
Message
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
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.

Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search