DBGrid and getting record id lazarus / 13-General ---------------------------------------------------------------------- wht244 · 2009-10-11 08:31 i have a sqlite table like: id integer name varchar(16) address varchar(100) i try to use dbgrid to display records in that table, but how can i get id of selected record? ---------------------------------------------------------------------- wht244 · 2009-10-12 08:50 can anyone help? ---------------------------------------------------------------------- JD · 2009-10-12 11:21 DBGrid1.DataSource.DataSet.RecNo gives you the record number. Use this as the value of a column in your code ---------------------------------------------------------------------- cpalx · 2009-10-13 13:05 query.fieldbyname("tu campo").asstring