Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomDataController.GetMasterRecordIndex Method

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

#Declaration

Delphi
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