Vcl.DBGrids.TDBGridColumns.Items
Delphi
property Items[Index: Integer]: TColumn read GetColumn write SetColumn; default;
C++
__property TColumn* Items[int Index] = {read=GetColumn, write=SetColumn/*, default*/};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.DbGrids.pas Vcl.DBGrids.hpp |
Vcl.DBGrids | TDBGridColumns |
Description
Lists the columns in the collection.
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];