Back to Devexpress

GanttChartMappings.StartDateFieldName Property

windowsforms-devexpress-dot-xtragantt-dot-ganttchartmappings-e0abc5e1.md

latest3.5 KB
Original Source

GanttChartMappings.StartDateFieldName Property

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

Declaration

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

Property Value

TypeDefaultDescription
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

csharp
control.ChartMappings.TextFieldName = nameof(IMyTask.Name);
control.ChartMappings.StartDateFieldName = nameof(IMyTask.StartDate);
control.ChartMappings.FinishDateFieldName = nameof(IMyTask.EndDate);

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#L93

vb
gantt.ChartMappings.FinishDateFieldName = String.Empty
gantt.ChartMappings.StartDateFieldName = gantt.ChartMappings.FinishDateFieldName
gantt.ChartMappings.TextFieldName = gantt.ChartMappings.StartDateFieldName

See Also

GanttChartMappings Class

GanttChartMappings Members

DevExpress.XtraGantt Namespace