Hi all,
I am a new bee in Delphi Programming and I have a question related to DBGrid Component.
What I am trying to do is;
I have
  • AdoTable(To retrive the colums of my DB)
  • DataSource( to connect my DBGrid)
  • AdoConnection(To connect my DB)
  • TextFields( To get values from DBGrid and display)

When a user clicks a row on my DBGrid,I want to show the values in the related textfields.
For example,
One of my row includes ID,Name,Surname,Company
and my 1.textfield will show ID
2.txtfield will show Name
3.txtfield will show Surname
4.txtfield will show Company..
So it may be so simple for you guys but I dont know how to do ?
Could you please help me through?
Thanks