officefileapi-devexpress-dot-spreadsheet-dot-realtimedata.md
Retrieves data from the server and updates the Real Time Data (RTD) function result.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
void RefreshData()
Sub RefreshData
Call the RefreshData method to update data if the RealTimeDataOptions.RefreshMode is set to the RealTimeDataRefreshMode.Manual value.
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.
how-to-implement-real-time-data-server-and-use-rtd-worksheet-function/CS/TestRTDClient/Form1.cs#L23
private void barbButtonRefreshData_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) {
spreadsheetControl1.Document.RealTimeData.RefreshData();
}
how-to-implement-real-time-data-server-and-use-rtd-worksheet-function/VB/TestRTDClient/Form1.vb#L23
Private Sub barbButtonRefreshData_ItemClick(ByVal sender As Object, ByVal e As DevExpress.XtraBars.ItemClickEventArgs) Handles barbButtonRefreshData.ItemClick
spreadsheetControl1.Document.RealTimeData.RefreshData()
End Sub
See Also