Back to Devexpress

GanttChartMappings.ProgressFieldName Property

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

latest3.9 KB
Original Source

GanttChartMappings.ProgressFieldName Property

Gets or sets the data source field (of the Single type) that specifies a task’s progress (from 0 to 100 percent).

Namespace : DevExpress.XtraGantt

Assembly : DevExpress.XtraGantt.v25.2.dll

NuGet Package : DevExpress.Win.Gantt

Declaration

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

Property Value

TypeDefaultDescription
String"Progress"

The data source field that specifies a task’s progress.

|

Remarks

The DataSource property specifies the data source bound to the control. Use the ProgressFieldName property to specify the field in the data source that stores each task’s progress. The type of the data field should be Single and contain values from 0 to 100.

csharp
ganttControl1.ChartMappings.ProgressFieldName = "Progress";
vb
ganttControl1.ChartMappings.ProgressFieldName = "Progress"

See Task Progress for more information.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ProgressFieldName 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#L82

csharp
control.ChartMappings.FinishDateFieldName = nameof(IMyTask.EndDate);
control.ChartMappings.ProgressFieldName = nameof(IMyTask.Progress);
control.ChartMappings.PredecessorsFieldName = nameof(IMyTask.PredecessorTasks);

See Also

Bind to Data Source

Task Progress

CustomTaskProgress

UpdateDependentTaskProgress

UpdateSummaryProgress(GanttControlNode)

AllowModifyProgress

GanttChartMappings Class

GanttChartMappings Members

DevExpress.XtraGantt Namespace