RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TGridDataLink.GetMappedIndex Method

GetMappedIndex provides the index of a field component in the dataset that corresponds to an index within the field map.

Pascal
function GetMappedIndex(ColIndex: Integer): Integer;
C++
__fastcall int GetMappedIndex(int ColIndex);

Use GetMappedIndex on an index into the field map to get an index into the dataset for the same field component. Both the field map and the dataset are zero-based arrays. If an entry in the field map is an undefined field, GetMappedIndex returns -1. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!