This is a simple example of XtraScheduler bound to collection of custom business objects displaying Gantt view. This project also utilizes the ResourcesTree control to display a hierarchy of resources and the SplitContainer control to allow resizing of Scheduler and ResourceTree controls.
To accomplish this task, you should have three collections - for appointments, for resources and for appointments dependencies. All collections should implement the IBindingList interface. You can implement this interface manually in your custom collection, but we recommend you use the System.ComponentModel.BindingList<T> collection.
Additionally, your business objects should have properties suitable for mapping to the corresponding properties of XtraScheduler appointments, resources and appointments dependencies.
See also:
How to bind the SchedulerControl to a collection of custom objects
How to enable Gantt view for the XtraScheduler bound to MS SQL Server database
Question Comments
Added By: john van der putte at: 5/9/2015 11:41:07 AM
i tried this example (both VB.NET and C#) with VS2010 but i get the error that it isn't compatible with this version of VS. Is there another simple example where i can learn how to make a gantchart with resourcetree without making use of a database for the resources and appointments.
Added By: Oleg (DevExpress Support) at: 5/11/2015 12:50:21 AMHello John,
In the sample project we provided here, the Target Framework is set to 4.5. That is why this sample project can't be opened in Visual Studio 2010.
I changed the Target Framework to 4.0 and modified the sample project we posted here. Please check it and let me know whether or not this sample runs correctly on your side.
I am looking forward to your response.
Hello Oleg,
The sample runs correctly with VS2010. Thanks.
Added By: Oleg (DevExpress Support) at: 5/11/2015 11:23:40 PM You are welcome, John!Do not hesitate to contact us if you have additional questions or need further assistance.Added By: john van der putte at: 5/24/2015 1:51:03 AM
Oleg,
With this example i managed to get the resourcetree and gantview working in my application.
Is it possible to give the rows a constant height? I tried diverent things but they keep stretching with the height of the gantview