SchedulerControl.RefreshData() Method
Updates all data in the SchedulerControl to reflect any changes made in data sources which store appointments and appointment resources.
Namespace: DevExpress.Xpf.Scheduling
Assembly: DevExpress.Xpf.Scheduling.v24.1.dll
NuGet Package: DevExpress.Wpf.Scheduling
Declaration
Remarks
Appointments and appointment resources for the scheduler control can be stored in external data source. To connect the scheduler control to these data source, use the SchedulerControl.DataSource property.
Data from the data source is automatically reloaded after each change is made to the data sources (for instance, when records are added, deleted or modified) by default. You can manually call the RefreshData method to reload the data in the data source for the changes to appear in the scheduler control.
All appointments in the SchedulerControl are recreated after calling the RefreshData method. So, all appointments referenced in your code previously are disposed.
If you use the DataSource.FetchAppointments or DataSource.FetchTimeRegions event to load data on demand, the RefreshData method clears the cached appointments/time regions and fires both events.