GridView.MasterRowExpanded Event
Fires immediately after a particular detail clone has become visible.
Namespace: DevExpress.XtraGrid.Views.Grid
Assembly: DevExpress.XtraGrid.v22.2.dll
NuGet Package: DevExpress.Win.Grid
Declaration
Event Data
The MasterRowExpanded event's data class is CustomMasterRowEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
RelationIndex | Gets the relation index that identifies the affected detail. |
RowHandle | Gets the handle of the currently processed master row in the current View. |
Remarks
The MasterRowExpanded event fires when expanding a master row or when switching between details. The master row can be determined using the CustomMasterRowEventArgs.RowHandle parameter. The detail can be identified using the CustomMasterRowEventArgs.RelationIndex parameter.
The MasterRowExpanded event serves as a notification only and cannot cancel the action. To control whether details can shown, handle the GridView.MasterRowExpanding event instead.
If you need to handle detail clones creation, handle the grid control’s GridControl.ViewRegistered event.
Please refer to the Master-Detail Relationships topic for additional information.