• 0
Sign in to follow this  
Guest - Luiz -

Dbgrid E Table

Question

Guest - Luiz -

Olá,

Eu tenho um dbgrid que está ligado a um QUERY para mostrar os resultados de consulta na tabela agenda, e varios dbedits que estáo ligados a um TABLE (que está ligado a tabela agenda). Como faço para que quando der um click na linha do grid o cursor do TABLE se mova para o registro correspondente nesta linha do grid? Obrigado.

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Não sei se entendi, mas tenta isso:

procedure TForm1.DBGrid1CellClick(Column: TColumn);

begin

Table1.Locate('Campo1',Query1.FieldByName('Campo1').AsString,[]);

end;

Progr'amador. wink.gif

Share this post


Link to post
Share on other sites

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.

Sign in to follow this