Me imagino que usas BDE (por el hilo anterior).
Este error salta al intentar modificar en los
dos TDBGrids el mismo registro. Puedes mirar de controlar este error en el evento OnEditError del Dataset. Algo así:
Código Delphi
[-]
procedure TForm1.Table1EditError(DataSet: TDataSet; E: EDatabaseError;
var Action: TDataAction);
begin
if E is EDBEngineError then
case EDBEngineError(E).Errors[0].ErrorCode of
DBIERR_ALREADYLOCKED:
begin
ShowMessage('lili');
Action := daAbort;
end;
end;
end;
Espero te sea de utilidad
PD: por cierto, como ponen el código con formato delphi? no encuentro el botón para hacerlo