ErrorProvider Control: Please provide the Information if there is an active Error

Post feature requests, product enhancement ideas, and other product-specific suggestions here. Do not post bug reports.
Forum rules
Do not post any licensing information in this forum.
Locked
User avatar
Jehoschua
Posts: 26
Joined: Fri Jan 29, 2016 6:23 am

ErrorProvider Control: Please provide the Information if there is an active Error

Post by Jehoschua » Fri Aug 11, 2017 1:23 pm

Good evening
The ErrorProvider Control is a really nice solution to display missing / invalid data.
Unfortunately, the ErrorProvider Control does not offer a property with the information if it is active on any control.
Therefore, we have to do the error bookkeeping in parallel.

Could you please add one of those properties?:
  • A boolean which indicates that there is still one Control with an assigned ErrorProvider Control
  • The number of Controls which have an assigned ErrorProvider Control
  • A list of all Controls which have an assigned ErrorProvider Control
This would eliminate the need to code the bookkeeping.

Thanks a lot for investigating this wish.
Kind regards,
Thomas

User avatar
davidc
Posts: 4982
Joined: Thu Aug 18, 2011 4:56 am

Re: ErrorProvider Control: Please provide the Information if there is an active Error

Post by davidc » Fri Aug 11, 2017 1:45 pm

This is a Microsoft .NET control and not something we created.

You could create a function the iterates through the form's controls and check if it has an error message by using the ErrorProvider's GetError method.
David
SAPIEN Technologies, Inc.

Locked