Jump to content
Fórum Script Brasil
  • 0

Transferir consulta Master/Detalhe DBGrid


wvcampos69

Question

Olá, fiz uma form com 2 dbgrid para consulta master/detalhe.

Funcionando bem mas, consigo pegar apenas a primeira linha (row) da grid detalhe para enviar para outro formulário (capa):

    Form2.DBEdit17.Text := DBGrid2.Fields[0].Value;
    Form2.DBEdit18.Text := DBGrid2.Fields[1].Value;
    Form2.DBEdit28.Text := DBGrid2.Fields[2].Value;
    Form2.DBEdit32.Text := DBGrid2.Fields[3].Value;

Como informo que a 2ª linha (e assim sucessivamente) do grid vai levar as próximas informações para outros DBEdit?

Edited by wvcampos69
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.1k
    • Total Posts
      651.8k
×
×
  • Create New...