147852 Novato

Registrado: Segunda-Feira, 2 de Janeiro de 2006 Mensagens: 20
|
Enviada: Ter Mar 13, 2007 8:16 pm Assunto: Codigo do stgGrid para DBGrid ..... |
|
|
Queria saber se tem como eu transferir esse codigo do stg grid para funcionar no DBGrid:
Código: |
var
prox: integer;
begin
prox:=1;
if not ADOQuery1.IsEmpty then
ADOQuery1.First;
while not ADOQuery1.Eof do
begin
StringGrid1.Cells[0,prox]:=IntToStr(prox);
Inc(prox);
StringGrid1.RowCount:=prox;
ADOQuery1.Next;
end;
end; |
Se alguem souber me ajudar ae, estou precisando muito.... VLW.. |
|