PivotGridControl.SetDataSourceAsync(Object) Method
Sets the data source for the Pivot Grid control and loads data asynchronously.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.XtraPivotGrid.v24.2.dll
Declaration
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 |
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.