Skip to main content

GridControl.GetVisibleDetail(Int32) Method

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

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v22.1.dll


public DataControlBase GetVisibleDetail(
    int rowHandle


Name Type Description
rowHandle Int32

An integer value identifying the row by its handle.


Type Description

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


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