The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



OnReadCell


Unit:SDL_replist
Class: TReportListView
Declaration: property OnReadCell: TReadCellEvent;
{ TReadCellEvent = procedure (Sender: TObject; ACol, ARow: integer; var Text: ShortString) of object; }

The event OnReadCell is triggered when a cell of the report listview is read either by using the property Elem or by calling FilterAndSort. This event allows to adjust the text the calling routine actually sees. The parameters ACol and ARow specify the column and row index of the cell to be accessed. The variable parameter Text contains the string of the cell. You can change the Text variable causing the calling program to receive the changed value (instead of the original value).

Hint: Please be careful not to use the property Elem within the OnReadCell event because this will result in a recursive call causing a stack overflow. If you need to access the contents of any cell of the report listview within the event handler you should uses the public variable FRLData (which does not trigger the OnReadCell event when reading a cell).



Last Update: 2023-Dec-13