windowsforms-devexpress-dot-xtragantt-dot-ganttchartmappings-efdacec7.md
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
[DefaultValue("Progress")]
[DXCategory("Mappings")]
[XtraSerializableProperty]
public string ProgressFieldName { get; set; }
<DXCategory("Mappings")>
<DefaultValue("Progress")>
<XtraSerializableProperty>
Public Property ProgressFieldName As String
| Type | Default | Description |
|---|---|---|
| String | "Progress" |
The data source field that specifies a task’s progress.
|
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.
ganttControl1.ChartMappings.ProgressFieldName = "Progress";
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
control.ChartMappings.FinishDateFieldName = nameof(IMyTask.EndDate);
control.ChartMappings.ProgressFieldName = nameof(IMyTask.Progress);
control.ChartMappings.PredecessorsFieldName = nameof(IMyTask.PredecessorTasks);
See Also