Skip to main content
.NET 6.0+

DataSourceBase.EnableAsyncLoading Property

Specifies whether or not the asynchronous report data source loading is enabled.

Namespace: DevExpress.Persistent.Base.ReportsV2

Assembly: DevExpress.Persistent.Base.v24.1.dll

Declaration

public static bool EnableAsyncLoading { get; set; }

Property Value

Type Description
Boolean

true, if the asynchronous report data source loading is enabled; otherwise, false.

Remarks

The data is loaded in reports in the separate thread by default. When data for a report is loaded simultaneously with data from an another thread and XPObjectSpaceProvider works in a non-thread-safe manner, the “Reentrancy or cross thread operation detected” exception can occur. You can use the XPObjectSpaceProvider instance in a thread-safe manner passing true as the last argument of its constructor. If using of the thread-safe XPObjectSpaceProvider is not possible in your application, disable asynchronous data loading in the reports setting the EnableAsyncLoading property to false.

See Also