Back to Devexpress

GanttColumn.BindTo Property

wpf-devexpress-dot-xpf-dot-gantt-dot-ganttcolumn.md

latest3.1 KB
Original Source

GanttColumn.BindTo Property

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

Declaration

csharp
public GanttColumnBindingSource? BindTo { get; set; }
vb
Public Property BindTo As GanttColumnBindingSource?

Property Value

TypeDescription
Nullable<GanttColumnBindingSource>

A GanttColumnBindingSource enumeration value.

|

Available values:

NameDescription
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.

|

Remarks

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

xml
<dxgn:GanttControl.Columns>
    <dxgn:GanttColumn BindTo="Name" />
    <dxgn:GanttColumn BindTo="StartDate" />

See Also

Bind Columns to Data Source Fields

Mappings

GanttColumn Class

GanttColumn Members

DevExpress.Xpf.Gantt Namespace