corelibraries-devexpress-dot-data-dot-irelationlist-dot-ismasterrowempty-x28-system-dot-int32-system-dot-int32-x29.md
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
bool IsMasterRowEmpty(
int index,
int relationIndex
)
Function IsMasterRowEmpty(
index As Integer,
relationIndex As Integer
) As Boolean
| 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.
|
| Type | Description |
|---|---|
| Boolean |
A Boolean value that specifies whether a specific detail of a particular master row contains data.
|
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