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.v20.2.dll

Declaration

bool IsMasterRowEmpty(
    int index,
    int relationIndex
)
Function IsMasterRowEmpty(
    index As Integer,
    relationIndex As Integer
) As Boolean

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