Skip to content

Create, customize, and bind to data a Gantt control for WPF.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/wpf-ganttcontrol-getting-started

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF Gantt Control - Create and Bind to Data

This example creates a WPF GanttControl, adds task columns (Name, StartDate, FinishDate), and binds the Gantt control to a collection of GanttTask objects.

WPF Gantt Control, DevExpress

<dxgn:GanttControl ItemsSource="{Binding Tasks}">
    <dxgn:GanttControl.Columns>
        <dxgn:GanttColumn BindTo="Name" />
        <dxgn:GanttColumn BindTo="StartDate" />
        <dxgn:GanttColumn BindTo="FinishDate" />
    </dxgn:GanttControl.Columns>
    <dxgn:GanttControl.View>
        <dxgn:GanttView
            AutoExpandAllNodes="True"
            AllowEditing="False"
            AllowSorting="False">
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>

Please read the following step-by-step tutorial for additional information: Add GanttControl to a Project.

Files to Review