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.IsDetailRowIndex(Int32, BaseView) Method

Returns if the specified row belongs to a detail View (in Embedded detail mode).

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

public bool IsDetailRowIndex(
    int visibleIndex,
    BaseView view = null
)

#Parameters

Name Type Description
visibleIndex Int32

The visible index of the row to test.

#Optional Parameters

Name Type Default Description
view BaseView null

The detail View to test. This is an optional parameter.

#Returns

Type Description
Boolean

true if the specified row belongs to a detail View (in Embedded detail mode); otherwise, false.

#Remarks

The IsDetailRowIndex method returns information on a row in Embedded detail mode. In Classic detail mode, the method always returns false.

You can test if a row belongs to any detail View by setting the view parameter to null. If this parameter is not null, the IsDetailRowIndex method tests if the specified row belongs to the specified detail View.

See Also