Skip to main content
A newer version of this page is available. .

TcxCustomGridTableItem.OnValidateDrawValue Event

Enables you to customize the manner in which validation errors are visualized in item cells.

Declaration

property OnValidateDrawValue: TcxGridValidateDrawValueEvent read; write;

Remarks

The Sender and ARecord parameters identify the grid View item and the record that correspond to the currently processed data cell.

The AValue parameter contains the cell editor’s edit value. Test the AValue against the same validation logic as you have for the item Properties.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.ValidationOptions property.

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

See Also