Ver Mensaje Individual
  #3  
Antiguo 12-04-2010
cloayza cloayza is offline
Miembro
 
Registrado: may 2003
Ubicación: San Pedro de la Paz, Chile
Posts: 947
Reputación: 25
cloayza Tiene un aura espectacularcloayza Tiene un aura espectacular
Esta es otra forma de eliminar registros seleccionados en un DBGrid.

Código Delphi [-]
procedure TForm4.BitBtn1Click(Sender: TObject);
Var
     i:Integer;
begin
     with DBGrid1.DataSource.DataSet do
     Begin
          for i:=0 to DBGrid1.SelectedRows.Count-1 do
          begin

           GotoBookmark(Pointer(DBGrid1.SelectedRows.Items[i]));

           DBGrid1.DataSource.DataSet.Delete;

          end;
     End;
end;

Espero te ayude...

Saludos
Responder Con Cita