Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomEditProperties.OnValidate Event

In This Article

Occurs before converting the display value to the edit value.

#Declaration

Delphi
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