windowsforms-devexpress-dot-xtragantt-dot-treelistmappings-a866098e.md
Gets or sets the data source field that identifies each record’s parent.
Namespace : DevExpress.XtraGantt
Assembly : DevExpress.XtraGantt.v25.2.dll
NuGet Package : DevExpress.Win.Gantt
[DefaultValue("ParentID")]
[XtraSerializableProperty]
public string ParentFieldName { get; set; }
<DefaultValue("ParentID")>
<XtraSerializableProperty>
Public Property ParentFieldName As String
| Type | Default | Description |
|---|---|---|
| String | "ParentID" |
The parent identifier field name.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ParentFieldName property.
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.
gantt.Columns.Clear();
gantt.TreeListMappings.KeyFieldName = gantt.TreeListMappings.ParentFieldName = gantt.ChartMappings.TextFieldName
= gantt.ChartMappings.StartDateFieldName = gantt.ChartMappings.FinishDateFieldName = string.Empty;
gantt.ChartMappings.TextFieldName = gantt.ChartMappings.StartDateFieldName
gantt.TreeListMappings.ParentFieldName = gantt.ChartMappings.TextFieldName
gantt.TreeListMappings.KeyFieldName = gantt.TreeListMappings.ParentFieldName
See Also