Data.DB.TField.Index
Delphi
property Index: Integer read GetIndex write SetIndex stored False;
C++
__property int Index = {read=GetIndex, write=SetIndex, stored=false, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Data.DB.pas Data.DB.hpp |
Data.DB | TField |
Description
Specifies the field component's index in the Fields property of the dataset.
Use the Index property to:
Find the position of the field in the dataset.
Change the order of a field's position in the dataset by changing the value of Index. Changing the Index value affects the order in which fields are displayed in data grids, but not the position of the fields in physical database tables.
Note: The field order can also be changed by dragging and dropping fields in the Fields editor at design time.