TsgcWSPClient_DatasetEvents › OnAfterDeleteRecord

OnAfterDeleteRecord Event

Fires after a delete received from the server has been applied to the local Dataset.

Syntax

property OnAfterDeleteRecord: TsgcWSAfterRecordEvent;
// TsgcWSAfterRecordEvent = procedure(Connection: TsgcWSConnection; const Dataset: TDataset) of object

Default Value

Remarks

Raised once the component has deleted the matching row from the attached Dataset in response to a server-side delete. Use it to refresh the UI or log the removal. The Dataset parameter refers to the same instance assigned to the DataSet property.

Example

procedure TForm1.oProtocolAfterDeleteRecord(Connection: TsgcWSConnection;
  const Dataset: TDataset);
begin
  Memo1.Lines.Add('record deleted');
end;

Back to Events