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

GridDevExtremeDataSource<T>.GetItemCountAsync(GridCustomDataSourceCountOptions, CancellationToken) Method

Returns the number of data source items that match specified options.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public override Task<int> GetItemCountAsync(
    GridCustomDataSourceCountOptions options,
    CancellationToken cancellationToken
)

#Parameters

Name Type Description
options GridCustomDataSourceCountOptions

An object that contains options that data source items should match.

cancellationToken CancellationToken

An object that propagates a cancellation notification.

#Returns

Type Description
Task<Int32>

An asynchronous operation that returns the number of items.

#Remarks

Do not call this method directly - the component calls this method automatically.

See Also