dpfmp Posted April 18, 2019 Share Posted April 18, 2019 Hi, In many grids, I use cell hints to display different information than the one that appears inside the cell. For example, one cell contains information about a license number, the hint would display the client name that is associated with this license number. I have a function in MainForm that returns the client firstName and lastName for that particular license: function TMainForm.GetClientName(const Licence: integer): string; var S: string; begin with ClientTB do begin if FindKey([Licence]) then Result := S + Trim(Fields.AsString) + ' ' + Trim(Fields.AsString); else Result := ''; end; end; What I am trying to achieve is this: I am using this code from here: UniDbGrid.ClientEvents.ExtEvents Finally my question is: How can I access MainForm.GetClientName with record.data as parameter so that I can display the information about the client in the tooltip? Thank you, Denis Prince D10.1 UniGUI 188.8.131.523 1 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.