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

TcxCustomEditorRowProperties.OnValidateDrawValue Event

In This Article

Enables you to customize the manner in which validation errors are visualized in the row editor.

#Declaration

Delphi
property OnValidateDrawValue: TcxVerticalGridValidateDrawValueEvent read; write;

#Remarks

The Sender and ARecordIndex parameters identify the row and the record that correspond to the currently processed cell.

The AValue parameter contains the cell editor’s edit value. Test the AValue against the same validation logic as you have for the row Properties.EditProperties.OnValidate event handler to determine if this value is valid.

The AData parameter references a TcxEditValidateInfo object to be used to visualize validation errors in the cell editor. For this event, the object properties are initialized with the values that correspond to a valid edit value. If AValue fails validation, you can customize these properties to specify the error icon and error message for the cell editor.

Note that error icons and error messages can be displayed only if the appropriate flags are set within the item Properties.EditProperties.ValidationOptions property.

To see how to tailor the OnValidateDrawValue event, the Properties.EditProperties.ValidationOptions property, and the row Properties.EditProperties.OnValidate event for validating data in cell editors, run the EditorsInPlaceValidationDemo shipped with the ExpressVerticalGrid Suite.

See Also