Would you like to delete one or more rows from a particular DBGrid without deleting the database record?
I was trying something like this but it did not work out.
while not DataModuleGeral2.qryAudienciasInicial.Eof do
begin
if (DM.qryAudienciasDATA_AUDIENCIA.AsDateTime = Date) and
(DM.qryAudienciasHORA_AUDIENCIA.AsDateTime < Time) then
begin
frmTelaPrincipal.dbgAudiencias.SelectedRows.Delete;
end else
DataModuleGeral2.qryAudienciasInicial.Next;
end;
I use Firebird 2.5 and Delphi