GridView.IsMasterRowEmptyEx(Int32, Int32) Method
Indicates whether a particular master row’s detail View is empty.
Namespace: DevExpress.XtraGrid.Views.Grid
Assembly: DevExpress.XtraGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
row |
Int32 | An integer value identifying the tested master row by its handle. |
relation |
Int32 | A zero-based integer specifying the index of the relationship in the data source. |
#Returns
Type | Description |
---|---|
Boolean | true if the specified detail View has no data; otherwise, false. |
#Remarks
Note that the method does not only depend on actual presence of data within a particular detail. If the master View’s GridOptionsDetail.EnableMasterViewMode option is disabled, the method returns false regardless of whether the detail is actually empty. In addition, the method raises the GridView.MasterRowEmpty event so that you can manually specify the presence of data within particular details.
If the View has a single detail, it is more convenient to use the GridView.IsMasterRowEmpty method.
Note
Detail pattern Views do not contain data and they are never displayed within Xtra
- Grid
Control. - returns the top most View in a grid;Main View - Grid
Control. - returns the focused View;Focused View - Grid
Control. - returns the currently maximized View;Default View - the sender parameter of View specific events;
- Grid
View. - returns a detail clone View for a specific master row.Get Detail View