RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStringGrid.Objects Property

Lists the objects for each cell in the grid.

Pascal
property Objects [ACol, ARow: Integer]: TObject;
C++
__property TObject * Objects[int ACol, ARow];

Use the Objects property to access the object associated with a particular cell. The ColCount and RowCount values define the size of the array of objects. ACol is the column coordinate of the cell, and ARow is the row coordinate of the cell, where the first column is column 0, and the first row is row 0.

Note: The string grid does not own the objects in the Objects array. Objects added to the Objects array still exist even if the string grid is destroyed. They must be explicitly destroyed by the application.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!