Event called before a cell is required by the Grid. The event includes reference to the Cell requested and properties such as
AsInteger can be used for setting the value.
property OnGetCell: TNxCellEvent read FOnGetCell write FOnGetCell;
procedure TForm1.NxVirtualCellSource61GetCell(Sender: TObject; ACol, ARow: Integer; Cell: INxCell); begin if ACol = 0 then Cell.AsString := Products[ARow]; if ACol = 1 then Cell.AsFloat := Sales[ARow]; end;