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