windowsforms-devexpress-dot-xtragantt-dot-ganttchartmappings-3d8145e2.md
Gets or sets the data source field (of the DateTime type) that specifies a task’s finish date.
Namespace : DevExpress.XtraGantt
Assembly : DevExpress.XtraGantt.v25.2.dll
NuGet Package : DevExpress.Win.Gantt
[DefaultValue("FinishDate")]
[DXCategory("Mappings")]
[XtraSerializableProperty]
public string FinishDateFieldName { get; set; }
<DXCategory("Mappings")>
<DefaultValue("FinishDate")>
<XtraSerializableProperty>
Public Property FinishDateFieldName As String
| Type | Default | Description |
|---|---|---|
| String | "FinishDate" |
The data source field that specifies a task’s finish date.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the FinishDateFieldName 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.
xaf-win-gantt-control/CS/XPO/GanttSolutionXPO/GanttSolutionXPO.Win/Editors/CustomGanttEditor.cs#L81
control.ChartMappings.StartDateFieldName = nameof(IMyTask.StartDate);
control.ChartMappings.FinishDateFieldName = nameof(IMyTask.EndDate);
control.ChartMappings.ProgressFieldName = nameof(IMyTask.Progress);
gantt.TreeListMappings.KeyFieldName = gantt.TreeListMappings.ParentFieldName = gantt.ChartMappings.TextFieldName
= gantt.ChartMappings.StartDateFieldName = gantt.ChartMappings.FinishDateFieldName = string.Empty;
if(!ValidateBindings()) return;
gantt.Columns.Clear()
gantt.ChartMappings.FinishDateFieldName = String.Empty
gantt.ChartMappings.StartDateFieldName = gantt.ChartMappings.FinishDateFieldName
See Also