Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxPivotGridDataProvider<T>.Create<TDataSource>(Task<TDataSource>) Method

Creates a new DxPivotGridDataProvider<T> instance based on the specified settings.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public static DxPivotGridDataProvider<T> Create<TDataSource>(
    Task<TDataSource> data
)
    where TDataSource : IEnumerable<T>

#Parameters

Name Type Description
data Task<TDataSource>

An asynchronous operation that returns data for the Pivot Grid and Chart.

#Type Parameters

Name Description
TDataSource

The data source type.

#Returns

Type Description
DxPivotGridDataProvider<T>

The created class object.

#Remarks

The following code snippet creates a DxPivotGridDataProvider object based on the Sales.Load() method that asynchronously returns an IEnumerable<T> data source:

Razor
...
@code {
    DxPivotGridDataProvider<SaleInfo> PivotGridDataProvider = DxPivotGridDataProvider<SaleInfo>.Create(Sales.Load());
}
See Also