GridView.GetVisibleDetailRelationIndex(Int32) Method

Determines which of the master row's details is currently visible.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

public int GetVisibleDetailRelationIndex(
    int rowHandle
)
Public Function GetVisibleDetailRelationIndex(
    rowHandle As Integer
) As Integer

Parameters

Name Type Description
rowHandle Int32

An integer value specifying the master row's handle.

Returns

Type Description
Int32

A zero-based integer identifying the opened detail. -1 if the master row is collapsed (i.e. none of the detail Views are visible).

Remarks

You can expand a master row and make a particular detail visible using the GridView.SetMasterRowExpandedEx method. If you need to access the currently visible detail, use the GridView.GetVisibleDetailView method. To obtain arbitrary details, use the GridView.GetDetailView method instead.

Please refer to the Master-Detail Relationships and Working with Master-Detail Relationships in Code topics for additional information.

NOTE

Detail pattern Views do not contain data and they are never displayed within XtraGrid. So, the GetVisibleDetailRelationIndex member must not be invoked for these Views. The GetVisibleDetailRelationIndex member can only be used with real Views that are displayed within the Grid Control. The real Views with which an end-user interacts at runtime can be accessed using the following methods.

See Also