Click or drag to resize
CellControlOnValidate Method
Raises the ValidateCell event.

Namespace: Stingray.Grid
Assembly: Stingray.GridControl (in Stingray.GridControl.dll) Version: 14.0.0.0
Syntax
protected virtual bool OnValidate(
	ValidateCellEventArgs e
)

Parameters

e
Type: Stingray.GridValidateCellEventArgs
The event data.

Return Value

Type: Boolean
true if the event data indicates that the cell is valid; false otherwise.
Remarks
This method is invoked to validate the contents of a grid cell.

This method is called when the user has confirmed the cell contents. The default behavior is to invoke OnValidate(ValidateCellEventArgs) for the current cell. The cell contents are considered valid only if all attached delegates report that the data is valid and OnValidate(ValidateCellEventArgs) returns true for the cell.

You can validate all controls via ValidateCell, or you can attach a delegate to the specific CellControl that you want to validate.

See Also