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

GridControl.GetVisibleDetail(Int32) Method

Returns the currently visible detail data control identified by its master row.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v18.2.dll

Declaration

public DataControlBase GetVisibleDetail(
    int rowHandle
)

Parameters

Name Type Description
rowHandle Int32

An integer value identifying the row by its handle.

Returns

Type Description
DataControlBase

A DataControlBase descendant which displays detail data. null (Nothing in Visual Basic) if the currently visible detail is not represented by a DataControlDetailDescriptor.

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) per data relation, there can be multiple detail controls - one per each expanded detail.

The GetVisibleDetail 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. Note that the method returns the control only if it’s currently visible (resides within an expanded detail).

See Also