Library Vcl NextSuite 6 NextGrid6 Reference Classes TNxCustomGrid6 OnCellClick

OnCellClick

An event being triggered after an user click on a cell. It provides column, row index and mouse button pressed while clicking.

pas
property OnCellClick: TNxCellClickEvent read FOnCellClick write FOnCellClick;

Example

pas
procedure TForm2.NextGrid62CellClick(Sender: TObject; ACol, ARow: Integer; Button: TMouseButton);
begin
  if Button = mbLeft then
  begin
    ProductsService.LoadProducts(ARow);
  end;
end;

Sign in