GridControl.GetDetail(Int32, DataControlDetailDescriptor) Method
Returns the detail data control identified by the master row and its Detail Descriptor.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v14.2.dll
#Declaration
public DataControlBase GetDetail(
int rowHandle,
DataControlDetailDescriptor descriptor = null
)
#Parameters
Name | Type | Description |
---|---|---|
row |
Int32 | An integer value identifying the master row by its handle. |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
descriptor | Data |
null |
Optional. A Data |
#Returns
Type | Description |
---|---|
Data |
A Data |
#Remarks
When you set up a master-detail hierarchy within a GridControl, you create Detail Descriptor objects which contain settings used to create actual detail controls. While there's a single Detail Descriptor (template), there can be multiple detail controls - one per each expanded detail.
The GetDetail method returns the actual data control that displays detail data for the specified master row. This can be any DataControlBase descendant, but it will typically be a GridControl. If there are multiple details displaying data via DataControlBase descendants, you can identify the one you want to get by its corresponding template - DataControlDetailDescriptor object.