Vcl.DBGrids.TGridDataLink.GetMappedIndex

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function  GetMappedIndex(ColIndex: Integer): Integer;

C++

int __fastcall GetMappedIndex(int ColIndex);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.DbGrids.pas
Vcl.DBGrids.hpp
Vcl.DBGrids TGridDataLink

Description

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

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.

See Also