Show / Hide Table of Contents

Method ShowOrRefreshAsync

| Improve this Doc View Source

ShowOrRefreshAsync(DataView, Func<Task<DataSet<T>>>, Boolean)

Show or refresh the DataSet to DataView asynchronously.

Declaration
public Task ShowOrRefreshAsync(DataView dataView, Func<Task<DataSet<T>>> getDataSet, bool resetCriteria = false)
Parameters
Type Name Description
DataView dataView

The DataView which renders the data.

System.Func<System.Threading.Tasks.Task<DataSet<T>>> getDataSet

The delegate to load DataSet asynchronously.

System.Boolean resetCriteria

Indicates whether filtering and sorting criteria should be reseted.

Returns
Type Description
System.Threading.Tasks.Task
Remarks

The async task.

| Improve this Doc View Source

ShowOrRefreshAsync(DataView, Func<Task<DataSet<T>>>, Func<T, Predicate<DataRow>>, Func<T, IComparer<DataRow>>)

Show or refresh the DataSet to DataView asynchronously, with specified filtering condition and sorting comparer.

Declaration
public Task ShowOrRefreshAsync(DataView dataView, Func<Task<DataSet<T>>> getDataSet, Func<T, Predicate<DataRow>> getWhere, Func<T, IComparer<DataRow>> getOrderBy)
Parameters
Type Name Description
DataView dataView

The DataView which renders the data.

System.Func<System.Threading.Tasks.Task<DataSet<T>>> getDataSet

The delegate to load DataSet asynchronously.

System.Func<T, System.Predicate<DataRow>> getWhere

The delegate to return filtering condition.

System.Func<T, System.Collections.Generic.IComparer<DataRow>> getOrderBy

The delegate to return sorting comparer.

Returns
Type Description
System.Threading.Tasks.Task

The async task.

| Improve this Doc View Source

ShowOrRefreshAsync(DataView, Func<CancellationToken, Task<DataSet<T>>>, Boolean)

Show or refresh the DataSet to DataView asynchronously.

Declaration
public Task ShowOrRefreshAsync(DataView dataView, Func<CancellationToken, Task<DataSet<T>>> getDataSet, bool resetCriteria = false)
Parameters
Type Name Description
DataView dataView

The DataView which renders the data.

System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<DataSet<T>>> getDataSet

The delegate to load DataSet asynchronously.

System.Boolean resetCriteria

Indicates whether filtering and sorting criteria should be reseted.

Returns
Type Description
System.Threading.Tasks.Task
Remarks

The async task.

| Improve this Doc View Source

ShowOrRefreshAsync(DataView, Func<CancellationToken, Task<DataSet<T>>>, Func<T, Predicate<DataRow>>, Func<T, IComparer<DataRow>>)

Show or refresh the DataSet to DataView asynchronously, with specified filtering condition and sorting comparer.

Declaration
public Task ShowOrRefreshAsync(DataView dataView, Func<CancellationToken, Task<DataSet<T>>> getDataSet, Func<T, Predicate<DataRow>> getWhere, Func<T, IComparer<DataRow>> getOrderBy)
Parameters
Type Name Description
DataView dataView

The DataView which renders the data.

System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<DataSet<T>>> getDataSet

The delegate to load DataSet asynchronously.

System.Func<T, System.Predicate<DataRow>> getWhere

The delegate to return filtering condition.

System.Func<T, System.Collections.Generic.IComparer<DataRow>> getOrderBy

The delegate to return sorting comparer.

Returns
Type Description
System.Threading.Tasks.Task

The async task.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest