Skip to main content

TcxCustomDataController.GetMasterRecordIndex Method

Returns the record index of the master record corresponding to the current clone of a detail data controller.

Declaration

function GetMasterRecordIndex: Integer; virtual;

Returns

Type
Integer

Remarks

The GetMasterRecordIndex function can be called only for clones of a detail data controller. It returns the record index of the master record corresponding to the current clone of your detail data controller.

For pattern detail and master data controllers, GetMasterRecordIndex returns -1. See the TcxCustomDataController description for information on patterns, clones, and record indexes.

The GetMasterRecordIndex function can be used when implementing a master-detail relationship in provider mode. See the Provider Mode: Master-Detail topic in the ExpressQuantumGrid help system for more information.

To get a master data controller for the current detail, see the GetMasterDataController function.

See Also