Ver Mensaje Individual
  #2  
Antiguo 03-01-2005
Avatar de marcoszorrilla
marcoszorrilla marcoszorrilla is offline
Capo
 
Registrado: may 2003
Ubicación: Cantabria - España
Posts: 11.221
Reputación: 10
marcoszorrilla Va por buen camino
Prueba este código.
Código Delphi [-]
function GridSelectAll(Grid: TDBGrid): Longint; 
begin 
  Result := 0; 
  Grid.SelectedRows.Clear; 
  with Grid.Datasource.DataSet do 
  begin 
    First; 
    DisableControls; 
    try 
      while not EOF do 
      begin 
        Grid.SelectedRows.CurrentRowSelected := True; 
        inc(Result); 
        Next; 
      end; 
    finally 
      EnableControls; 
    end; 
  end; 
end;
Un Saludo.
__________________
Guía de Estilo de los Foros
Cita:
- Ça c'est la caisse. Le mouton que tu veux est dedans.
Responder Con Cita