[Lazarus] How to associate an object with a row in TStringGrid

Dennis dec12 at avidsoft.com.hk
Wed Sep 3 10:17:29 CEST 2014

when displaying data in a TStringGrid, I want to associate an object 
with each row of the grid so that when later use select a certain row, I 
can just determine the selected row and then retrieve the associate 
object for further processing (e.g. display further information of this 
object in some controls).

How do I do that?

Currently, I use OnSelection  (Sender: TObject; aCol, aRow: Integer) to 
obtain aRow but how do I associate an object with each row?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140903/af3abbfe/attachment-0002.html>

More information about the Lazarus mailing list