Print Page | Close Window

Validation bullets still displayed after RejectChanges()

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=412
Printed Date: 17-Sep-2025 at 1:14am


Topic: Validation bullets still displayed after RejectChanges()
Posted By: MichaelP
Subject: Validation bullets still displayed after RejectChanges()
Date Posted: 05-Sep-2007 at 11:12pm
I have a form with a grid. If I do a number of edits that break the validation rules I get the various error bullets displayed. I have an undo function that calls RejectChanges() on the persistance manager and then I call Refresh() on the grid to display the original data, but the error bullets don't go away. Does anyone know how to fix this? (I already tried the grid Validate() function).
Note that I am using CSLA validation to allow multiple error bullets to be displayed at once. i.e. with a BaseEntity class that implements IDataErrorInfo.



Replies:
Posted By: eileenv
Date Posted: 07-Nov-2007 at 3:45pm
Have you tried BindingSource.ResetCurrentItem()? This should cause the data binding to check the IDataErrorInfo.Error() and update the bullets.



Print Page | Close Window