Delphi TStringGrid cells to store multiple objects
Posted on 2005-03-16
I am writing a program which has 12 records in it, each with different data content. I want to use a grid (i.e. TStringGrid) to store the records in cells.
I want to be able to store say records R1, R3, R8 in cell 1, records R5, R3, R10 in cell 2 etc. in other words I need the grid cell to be able to reference multiple objects.
Then, when I click on a cell a message dialogue will appear listing the objects stored in the particular cell clicked, with a printout of the record data.
I know I can use StringGrid.Objects[ACol, ARow] := Obj; to reference a single object but how can I store and access multiple objects for a cell?
I am new to Delphi so I need some help with this if anyone has any ideas. I am open to any suggestions including 3rd party components.
Thanks in advance.