OnValidate Method (GridCellRendererBase)

This method is called from GridCurrentCell.Validate after GridCurrentCell.Validating event has been fired. The default version checks if the active text fits any criteria as specified in the style object: It can be parsed into a cell value and meets GridCellValidateValueInfo criteria.
Protected Overridable Function OnValidate() As Boolean
Dim instance As GridCellRendererBase
Dim value As Boolean
value = instance.OnValidate()
protected virtual bool OnValidate()

Return Value

True if the modified text is valid; False otherwise.
If you throw an exception in your override, the exception message will be stored in the GridCurrentCell.ErrorMessage string and if specified, a message box will be shown.

OnValidate will call ValidateString, which you can also override.


Syncfusion.Grid.Windows: 18.2460.0.44

See Also