Skip to main content

IRelationList.IsMasterRowEmpty(Int32, Int32) Method

When implemented by a class, returns a Boolean value that specifies whether a specific detail of a particular master row contains data.

Namespace: DevExpress.Data

Assembly: DevExpress.Data.v23.2.dll

NuGet Package: DevExpress.Data

Declaration

bool IsMasterRowEmpty(
    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
Boolean

A Boolean value that specifies whether a specific detail of a particular master row contains data.

Remarks

This method is called in turn for each relationship for each master row (the number of relationships is determined by the IRelationList.RelationCount property). Handle this method to return a Boolean value which specifies whether a specific detail of a particular master row contains data.

When implementing a data source for a GridControl, the value returned by the IsMasterRowEmpty method is used if a master View’s GridOptionsDetail.AllowExpandEmptyDetails property is set to true (the grid allows the expansion of empty detail Views).

See Also