The requested page is not available for the requested platform. You are viewing the content for Default platform.
All docs
V19.1
19.2 (EAP/Beta)
19.1
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

HierarchyPrintOptions.ChildListFieldName Property

Specifies the child list field that the report's data exposes if it is recursive.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v19.1.dll

Declaration

[DefaultValue("")]
public string ChildListFieldName { get; set; }
<DefaultValue("")>
Public Property ChildListFieldName As String

Property Value

Type Default Description
String

String.Empty

The name of the field that stores a list of child data objects (records).

Remarks

Set this property if your report's data is recursive. Assign the collection of child objects (records) if they have the same type as the parent objects (records).

public class MyData {
  public MyData() {
    Children = new List<MyData>();
  }
  public List<MyData> Children { get; set; }
} 

After you specify the ChildListFieldName property, the report's Detail band is printed in tree mode.

Note

Tree mode is supported for recursive data and data with ID-ParentID related fields. Specify either the ChildListFieldName property or the KeyFieldName-ParentFieldName property pair.

See Also