RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStringGrid.Cols Property

Lists strings with their associated objects for each column.

Pascal
property Cols [Index: Integer]: TStrings;
C++
__property TStrings Cols[int Index];

Use Cols to access all the strings for a single column, along with their associated objects. The number of strings and associated objects is always equal to the value of the ColCount property, the number of columns in the grid. The Index parameter is the number of the column, where the value of the first column in the grid is zero. 

To get all the strings and objects for a row, rather than for a column, use the Rows property. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!