RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TField.Index Property

Specifies the field component's index in the Fields property of the dataset.

Pascal
property Index: Integer;
C++
__property int Index;

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.
 

 

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