CustomMasterRowEventArgs.RelationIndex Property

Gets the relation index that identifies the affected detail.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

public int RelationIndex { get; }
Public ReadOnly Property RelationIndex As Integer

Property Value

Type Description
Int32

An integer value specifying the relation index.

Remarks

Master rows can have several detail Views. In such cases, you will need to determine the detail clone affected when handling operations on master rows. Use the RelationIndex property for this purpose. The number of details for a specific row is determined by the GridView.GetRelationCount method.

You can determine the relation name by the relation index using the View's GridView.GetRelationName method. The corresponding detail View clone can be obtained using the GridView.GetDetailView method.

See Also