NextVirtualGrid6 Reference Classes TNxVirtualCellSource6 OnGetCell

OnGetCell

Event called before a cell is required by the Grid. The event includes reference to the Cell requested and properties such as AsString, AsInteger can be used for setting the value.

pas
property OnGetCell: TNxCellEvent read FOnGetCell write FOnGetCell;

Example

pas
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;

Sign in