Library Vcl NextSuite 6 NextGrid6 Reference Classes TNxCustomGrid6 OnBeforeEdit

OnBeforeEdit

Event that is triggered before cell (and grid) enters into editing mode. The event provides Accept parameter that can be set to block editing before it is started and Text parameter that can be used for adjusting text to be placed into in-place editor.

pas
published
  property OnBeforeEdit: TNxBeforeEditEvent read FOnBeforeEdit write FOnBeforeEdit;

Example

pas
procedure TForm2.NextGrid61BeforeEdit(Sender: TObject; ACol, ARow: Integer;
  var Accept: Boolean; var Text: WideString);
begin
  if Text = '' then Accept := False;
end;

Files

Sign in