Back to Devexpress

SchedulerControl.RefreshData() Method

windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-6265c9c9.md

latest3.4 KB
Original Source

SchedulerControl.RefreshData() Method

Updates the XtraScheduler control to reflect any changes made in the data sources which store appointments and appointment resources.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public virtual void RefreshData()
vb
Public Overridable Sub RefreshData

Remarks

This method calls the SchedulerStorageBase.RefreshData method to reload data from the data sources which contain appointments and appointment resources. Refer to this topic for more information.

Note

When the storage is connected to a data source and the PersistentObjectStorage<T>.AutoReload property is set to false , data is not automatically retrieved from the data source. The RefreshData method should be called manually to retrieve the data in this case.

Important

We always recommend testing the ISchedulerStateService.IsDataRefreshAllowed property before manually executing the SchedulerStorageBase.RefreshData or SchedulerControl.RefreshData methods.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RefreshData() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-scheduler-sort-resources/CS/Form1.cs#L28

csharp
if (CurrentSortOrder == ResourcesSortOrder.None)
    schedulerControl1.RefreshData();
else

winforms-scheduler-sort-resources/VB/Form1.vb#L31

vb
If CurrentSortOrder = ResourcesSortOrder.None Then
    schedulerControl1.RefreshData()
Else

See Also

XtraScheduler.PersistentObjectStorage

XtraScheduler.PersistentObjectStorage

RefreshData()

SchedulerControl Class

SchedulerControl Members

DevExpress.XtraScheduler Namespace