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.1.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
Declaration
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.