RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TValueListEditor.OnValidate Event

Occurs when focus shifts away from a cell in the value list editor.

Pascal
property OnValidate: TOnValidateEvent;
C++
__property TOnValidateEvent OnValidate;

Write an OnValidate event handler to validate any edits the user enters in a cell before focus leaves it. OnValidate gives applications an opportunity to provide more validation than the EditMask property of the corresponding TItemProp object can supply. 

OnValidate only occurs if the user edited the value of the cell that is about to lose focus. The OnValidate event handler can verify the value the user supplied, and if it is not acceptable, raise an exception. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!