[]
PostValidation allows you to validate the typed Value entered by the user.
The PostValidation class allows you to:
Check that the value matches one of the values in a pre-defined value list specified in the Values property.
Test the value to see if it is below a minimum or above a maximum, that is you can test to see if the value belongs to an interval.
You can even specify multiple intervals of allowed values. The intervals are defined in the Intervals property where you specify minimum and maximum values for each interval, and also whether minimum and maximum values are used or ignored, and whether or not the inequality is strict (minimum/maximum value included).
Exclude some values using the ValuesExcluded property.
Perform validation programmatically in the PostValidating event.
To distinguish between declarative and programmatic validation, use the PostValidation property with two possible values: ValuesAndIntervals and PostValidatingEvent. Note that PostValidatingEvent disables automatic validation of values and intervals. Call the ValidateValuesAndIntervals method from the event code if you want to combine event code with values and intervals validation.