[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Grids' (#lcl)

TCustomGrid.OnValidateEntry

Event handler signalled to perform validation for a cell value.

Declaration

Source position: grids.pas line 1317

protected property TCustomGrid.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

TCustomGrid.ValidateEntry

  

Validates the value for the specified cell.

TValidateEntryEvent

  

Specifies the event handler used to validate the content in a grid cell.

TApplication.HandleException

  

HandleException method for handling an exception; attempts to maintain program execution if possible, otherwise exits gracefully.


Version 3.2 Generated 2024-02-25 Home