Sign in Join
FPDoc Onlineexperiment

TCustomGrid.OnValidateEntry property

Member of TCustomGridprotectedIn unit Grids

Event handler signalled to perform validation for a cell value.

Declaration

pascal
property OnValidateEntry: TValidateEntryEvent read FOnValidateEntry write FOnValidateEntry;

Description

OnValidateEntry is a TValidateEntryEvent property with the event handler signalled to perform validation for cells in the ValidateEntry method. The OldValue argument contains the value validated in the handler routine. Use the NewValue argument to return a modified value from the handler routine.

The handler can raise an Exception if needed. It is caught in the calling routine (ValidateEntry), and forwarded to the HandleException method in the Application singleton.

Updated cell values are not validated if the event handler has not been assigned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.