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

GridView.GetVisibleDetailRelationIndex(Int32) Method

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

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

public int GetVisibleDetailRelationIndex(
    int rowHandle
)

#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 Views that display real data within the Grid Control. Use the following methods to access these Views with which an end user interacts at runtime.

See Also