Contents - Index - Previous - Next


OnEditControlValidateError event



Applies to
TProfGrid component

Declaration
property OnEditControlValidateError: TProfGridEditControlValidateErrorEvent;

Description

Provides a way to handle internal validation exceptions of custom inplace editors.

If the event is not used, the grid intentionally silences any exceptions raised by an external control. The event is only applicable to the controls that raise some validation exceptions (e.g. TMaskEdit).


Example

procedure TForm1.ProfGrid1EditControlValidateError(Sender: TProfGrid; ACol,
  ARow: Integer; const ErrorMessage: String);
begin
  ShowMessage(ErrorMessage);
end;