RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBGridColumns.Items Property

Lists the columns in the collection.

Pascal
property Items [Index: Integer]: TColumn;
C++
__property TColumn Items[int Index];

Use Items to access individual columns. The value of the Index parameter corresponds to the Index property of TColumn. It represents the position of the column in the data grid. 

Items is the default property of TDBGridColumns. This means that the property name, Items, can be omitted when referring to columns of the TDBGridColumns object. Thus, the line

FirstCol := DBGrid1.Columns.Items[0];

can also be written

FirstCol := DBGrid1.Columns[0];

 

Index 

operator_sb

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