Library Vcl NextSuite 6 NextGrid6 Reference Classes TNxCustomGrid6 OnInsertRowQuery

OnInsertRowQuery

Called internally inside AddInsertRow method, after user finish with editing InsertRow. Include Accept (var) parameter used for rejecting row being added.

pas
property OnInsertRowQuery: TNxInsertRowQueryEvent read FOnInsertRowQuery write FOnInsertRowQuery;

Example

pas
procedure TForm1.NextGrid61InsertRowQuery(Sender: TObject; var Accept: Boolean);
begin
  if NextGrid61.Columns[2].InsertValue.AsFloat > 10000 then
  begin
    Accept := False;
  end;
end;

Sign in