Skip to main content
A newer version of this page is available. .

Bind to Data

  • 2 minutes to read

You can bind the GanttControl to a collection of data items that represent tasks.

You should assign your data objects to the ItemsSource collection and specify mappings to bind task properties (StartDate, EndDate, etc.) to your data source fields.

Retrieve Tasks

The GanttControl can retrieve tasks from the following sources:

Retrieve Task Relationships

You can store task dependencies in the following ways:

  • in a separate collection where an element contains a successor-predecessor pair.
  • in the task objects that contain information about their predecessors.

Refer to Task Dependencies for more information.

Retrieve Resources

Use the GanttView.ResourcesSource property to bind the GanttControl to a source with resources.

After you bind the GanttControl to resources, assign these resources to tasks. Your data source can store resource dependencies in the following ways:

  • in a separate collection where an element contains a task-resource pair.
  • in task objects that contain information about their resources.

Refer to Resources for more information.