2
Could erase one or more lines from a given Dbgrid without deleting the database record?
I was trying something like this but it didn’t work.
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;
Utilise Firebird 2.5 and Delphi
It is not possible to delete a Dbgrid line that way. One idea would be to throw the dice into a Stringgrid and manipulate through it.
– Guybrush
Have you thought about putting everything on a Clientdataset?
– ProsTecnologia
might be a good idea...
– Edu Mendonça