RAD Studio VCL Reference
|
Lists the columns in the collection.
property Items [Index: Integer]: TColumn;
__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];
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|