Skip to main content

TcxCustomEditProperties.OnValidate Event

Occurs before converting the display value to the edit value.

Declaration

property OnValidate: TcxEditValidateEvent read; write;

Remarks

This event is generated by the editor that supports validation in response to the ValidateDisplayValue method call. This method performs the primary validation and passes the validation results as parameters to an OnValidate event handler. In an OnValidate event handler, you can redefine the validation results, or display an error message based on the results. Refer to the ValidateDisplayValue method description to learn when this method is called and how it initializes the OnValidate event parameters.

To see how to tailor the OnValidate event and the ValidationOptions property for validating data input in standalone editors, use the EditorsValidationDemo shipped with the ExpressEditors Library. To see how to use these members in combination with the OnValidateDrawValue event when validating data input in in-place editors, run the EditorsInPlaceValidationDemo shipped with the ExpressQuantumGrid, ExpressQuantumTreeList, and ExpressVerticalGrid Suites.

See Also