Refreshing ErrorProviders


Author
Message
Andrew Harper
Andrew Harper
StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)
Group: StrataFrame Users
Posts: 87, Visits: 3.3K
Hi,

I have a form to maintain Quotes that uses a combobox to show status values for the Quote. I want to be able to prevent the users from selecting a specific value from the combobox in some circumstances that I cannot control through the CheckRulesOnBusiness object. If I add a broken rule to a business object other than through the CheckRulesOnCurrentRow is there a way for me to refresh the error providers on the form to reflect the broken rules?

I realise I can do this manually via SetErrorProvider but I am looking for a cleaner option. Using SetErrorProvider manually requires that I call ClearErrorProvider() in the BeforeUndo()  to clear the manually set error providers.

TIA,

Andy



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search