Hi guys!
I'm new in Lazarus and in Pascal.
I have problem selecting the first column from tbdGrid.
When the program start fill up(database all fields: id, Name, Surname, Address, Phone) the TDBgrid and at OnCellClick event i select from TDBgrid just the ID, but depend where i'm clicking if i click o ID i get the ID and if i click on Name or Surname i get those values and not the ID
How can I select the field but should return the ID (first column from tdbGrid).
grdSearch.TDBgrid.DisplayText
Thanks in advanced