Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Bind to Data

  • 2 minutes to read

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

Note

The GanttControl does not fully support DataTable sources. The control displays data from such sources with limitations (for example, you cannot move and drag 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.