TDBGrid.OnGetCellHint determine cell lazarus / 31-LCL ---------------------------------------------------------------------- LemonParty · 2025-08-19 19:17 I have a TDBGrid and I want to show a specific hint for different rows. How to determine for which row hint was called? ---------------------------------------------------------------------- Bart · 2025-08-19 20:18 OK, the signature of OnGetCellHit for DBGrid is not the same as for TStringGrid. Maybe you can use MouseToCell() to determine the cell? Bart ---------------------------------------------------------------------- wp · 2025-08-19 20:56 When you want to display an individual hint for specific cells you must store these hints somewhere. I think the most natural way for a database application is to provide a separate field for the hint text. In this case you can simply read the field value and assign it to the Text output parameter of the OnGetCellHint event. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.DBGrid1GetCellHint(Sender: TObject; Column: TColumn;  var AText: String);begin  case Column.Field.FieldName of    'ID'   : AText := MemDataset1.FieldByName('Hint_ID').AsString;    'Name' : AText := MemDataset1.FieldByName('Hint_Name').AsString;  end;end; See attached project. ---------------------------------------------------------------------- LemonParty · 2025-08-20 14:51 Thank you, wp. It works.