Skip to main content

IRelationList.GetDetailList(Int32, Int32) Method

When implemented by a class, returns detail data for a relationship.

Namespace: DevExpress.Data

Assembly: DevExpress.Data.v23.2.dll

NuGet Package: DevExpress.Data

Declaration

IList GetDetailList(
    int index,
    int relationIndex
)

Parameters

Name Type Description
index Int32

An integer value that specifies the index of a master row in the data source.

relationIndex Int32

An integer value that specifies the relationship.

Returns

Type Description
IList

An object that implements the IList interface and represents detail data for a relationship.

Remarks

This method is called in turn for each relationship for each master row. Use this method to supply data for particular relationships.

The relationIndex parameter specifies a value between 0 and RelationCount - 1, where RelationCount is the number of relationships for the currently processed row. The number of relationships is identified:

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetDetailList(Int32, Int32) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also