Problem:
I want to bind the XtraScheduler to data via LINQ. Is this possible?
Solution:
Yes, it's possible and apparently it's not a problem. Review the code of the attached project to find out the details.
Note that the Scheduler control does not automatically respond to data modifications in the LINQ data source. The reason for this behavior lies in the fact that the scheduler is bound to a copy of data provided by the LINQDataContext. The LINQDataContext does not provide a list change notification mechanism that can be used by a scheduler. So after the initial data binding the scheduler can only trace changes originated from the actions performed by the scheduler itself.
To run the project, you need a database at the local SQL server. The script used to create the XtraCars database is included in the XtraCars.sql file. Create the database and change the connection string in the app.config file, if necessary.
Example Comments
Added By: Bryan Miller at: 9/24/2012 10:20:31 PM
Followed this example, when I change one of the property in my linq object by code, the change is not updated to the Appoinment and refreshed on the Scheduler control, what else do I need to change . I thought any changes to the underlying datasource will update the Scheduler
Lawlaw