wpf-devexpress-dot-xpf-dot-gantt-dot-ganttcolumn.md
Gets or sets a task field to which the current column is bound
Namespace : DevExpress.Xpf.Gantt
Assembly : DevExpress.Xpf.Gantt.v25.2.dll
NuGet Package : DevExpress.Wpf.Gantt
public GanttColumnBindingSource? BindTo { get; set; }
Public Property BindTo As GanttColumnBindingSource?
| Type | Description |
|---|---|
| Nullable<GanttColumnBindingSource> |
A GanttColumnBindingSource enumeration value.
|
Available values:
| Name | Description |
|---|---|
| StartDate |
Identifies the task’s start date.
| | FinishDate |
Identifies the task’s finish date.
| | Duration |
Identifies the task’s duration.
| | Progress |
Identifies the task’s progress.
| | Name |
Identifies the task’s name.
| | BaselineStartDate |
Identifies the task baseline’s start date.
| | BaselineFinishDate |
Identifies the task baseline’s finish date.
| | BaselineDuration |
Identifies the task baseline’s duration.
| | ResourceLinks |
Identifies the task’s resource links.
|
GanttColumns expose the BindTo property that allows you to bind a gantt column to a standard task property. Set the BindTo property to the required GanttColumnBindingSource enumeration value.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BindTo 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.
wpf-ganttcontrol-getting-started/CS/GanttControlDemoApp/MainWindow.xaml#L13
<dxgn:GanttControl.Columns>
<dxgn:GanttColumn BindTo="Name" />
<dxgn:GanttColumn BindTo="StartDate" />
See Also