TcxCustomEditorRowProperties.OnValidateDrawValue Event
Enables you to customize the manner in which validation errors are visualized in the row editor.
Declaration
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.