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

TCustomDBGrid.OnGetCellHint

Event handler signalled to get the hint text for a cell in the grid control.

Declaration

Source position: dbgrids.pas line 536

protected property TCustomDBGrid.OnGetCellHint : TDbGridCellHintEvent
  read FOnGetCellHint
  write FOnGetCellHint;

Description

OnGetCellHint is a TDbGridCellHintEvent property with the event handler signalled to get the hint text displayed for a cell on the grid control. Arguments passed to the event handler identify the grid control, the TColumn instance which contains the data for the cell, and variable parameter with the hint text derived in the handler routine. An application must implement and assign a handler routine to the property to respond to the event notification.

OnGetCellHint is signalled from the GetCellHintText method. It allows a custom value to be provided as the hint text for a cell and can be based on the column definition or the field accessed in the linked dataset.

Remark: OnGetCellHint is not signalled for cells which are located in the FixedRows for the grid control.

See also

TDbGridCellHintEvent

  

Specifies an event handler signalled to get the hint text for a cell in a grid control.


Version 3.2 Generated 2024-02-25 Home