Skip to main content
A newer version of this page is available. .

GridView.MasterRowGetChildList Event

Enables you to supply detail data manually.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v18.1.dll

Declaration

[DXCategory("MasterDetail")]
public event MasterRowGetChildListEventHandler MasterRowGetChildList

Event Data

The MasterRowGetChildList event's data class is MasterRowGetChildListEventArgs. The following properties provide information specific to this event:

Property Description
ChildList Gets or sets a detail clone’s record list.
RelationIndex Gets the relation index that identifies the affected detail. Inherited from CustomMasterRowEventArgs.
RowHandle Gets the handle of the currently processed master row in the current View. Inherited from CustomMasterRowEventArgs.

Remarks

The MasterRowGetChildList event is raised when a particular detail is about to be created. The event’s CustomMasterRowEventArgs.RowHandle and CustomMasterRowEventArgs.RelationIndex parameters identify the detail. To provide custom data for this detail, assign a proper list to the MasterRowGetChildListEventArgs.ChildList parameter.

The MasterRowGetChildList event can be used for the following purposes:

The MasterRowGetChildList event may fire multiple times for a single row during an application run. Moreover, in specific instances, the MasterRowGetChildList event fires twice when a row is expanded. If you perform lengthy operations within this event, or firing this event multiple times somehow affects performance, we recommend you implement data caching.

The following code snippets (auto-collected from DevExpress Examples) contain references to the MasterRowGetChildList event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also