Skip to main content

PivotGridControl.SetDataSourceAsync(Object) Method

Sets the data source for the Pivot Grid control and loads data asynchronously.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v24.1.dll

NuGet Package: DevExpress.Win.PivotGrid


public Task<bool> SetDataSourceAsync(
    object dataSource


Name Type Description
dataSource Object

An object that contains data for the Pivot Grid control.


Type Description

An asynchronous operation that returns true in case of success.


The SetDataSourceAsync method is asynchronous. SetDataSourceAsync starts to execute the related operation in a background thread, and returns the Pivot Grid control. The main UI thread remains unblocked to allow the application to continue responding to user actions. Refer to the following topic for more information: Asynchronous Mode.

To retrieve data from a data source synchronously, use the PivotGridControl.DataSource property.

Refer to the following topic for more information on how to bind the Pivot Grid to data: Binding to Data.

See Also