Back to Devexpress

IRelationList.IsMasterRowEmpty(Int32, Int32) Method

corelibraries-devexpress-dot-data-dot-irelationlist-dot-ismasterrowempty-x28-system-dot-int32-system-dot-int32-x29.md

latest2.5 KB
Original Source

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

NuGet Package : DevExpress.Data

Declaration

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

Parameters

NameTypeDescription
indexInt32

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

TypeDescription
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

Working with Master-Detail Relationships in Code

IRelationList Interface

IRelationList Members

DevExpress.Data Namespace