Back to Devexpress

GanttChartMappings.FinishDateFieldName Property

windowsforms-devexpress-dot-xtragantt-dot-ganttchartmappings-3d8145e2.md

latest3.5 KB
Original Source

GanttChartMappings.FinishDateFieldName Property

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

Declaration

csharp
[DefaultValue("FinishDate")]
[DXCategory("Mappings")]
[XtraSerializableProperty]
public string FinishDateFieldName { get; set; }
vb
<DXCategory("Mappings")>
<DefaultValue("FinishDate")>
<XtraSerializableProperty>
Public Property FinishDateFieldName As String

Property Value

TypeDefaultDescription
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

csharp
control.ChartMappings.StartDateFieldName = nameof(IMyTask.StartDate);
control.ChartMappings.FinishDateFieldName = nameof(IMyTask.EndDate);
control.ChartMappings.ProgressFieldName = nameof(IMyTask.Progress);

winforms-dashboard-custom-items-extension/CS/CustomItemExtension/CustomItems/GanttItem/GanttItemControlProvider.cs#L98

csharp
gantt.TreeListMappings.KeyFieldName = gantt.TreeListMappings.ParentFieldName = gantt.ChartMappings.TextFieldName
    = gantt.ChartMappings.StartDateFieldName = gantt.ChartMappings.FinishDateFieldName = string.Empty;
if(!ValidateBindings()) return;

winforms-dashboard-custom-items-extension/VB/CustomItemExtension/CustomItems/GanttItem/GanttItemControlProvider.vb#L92

vb
gantt.Columns.Clear()
gantt.ChartMappings.FinishDateFieldName = String.Empty
gantt.ChartMappings.StartDateFieldName = gantt.ChartMappings.FinishDateFieldName

See Also

GanttChartMappings Class

GanttChartMappings Members

DevExpress.XtraGantt Namespace