Ver Mensaje Individual
  #6  
Antiguo 15-11-2007
Avatar de jhonny
jhonny jhonny is offline
Jhonny Suárez
 
Registrado: may 2003
Ubicación: Colombia
Posts: 7.070
Reputación: 32
jhonny Va camino a la famajhonny Va camino a la fama
Bueno, ¿Esto es lo que necesitas?, espero que si .

Código Delphi [-]
var
  I :Integer;
begin
  I := 0;
  with DBGrid1.DataSource.DataSet do
  begin
    First;
    while not EOF do
    begin
      for j := 0 to FieldCount-1 do
      begin
        StringGrid1.Cells[j,i]:=Fields[j].AsString;
      end;
    Inc(I);
    Next;
    end;
  end;
end;
__________________
Lecciones de mi Madre. Tema: modificación del comportamiento, "Pará de actuar como tu padre!"

http://www.purodelphi.com/
http://www.nosolodelphi.com/
Responder Con Cita