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.v23.2.dll

NuGet Package: DevExpress.Win.PivotGrid

Declaration

public Task<bool> SetDataSourceAsync(
    object dataSource
)

Parameters

Name Type Description
dataSource Object

An object that contains data for the Pivot Grid control.

Returns

Type Description
Task<Boolean>

An asynchronous operation that returns true in case of success.

Remarks

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