PivotGridControl.SetFieldSortingAsync(PivotGridField, FieldSortOrder, AsyncCompletedHandler) Method
Sets the specified sort order for the specified field asynchronously.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v14.2.dll
#Declaration
public void SetFieldSortingAsync(
PivotGridField field,
FieldSortOrder sortOrder,
AsyncCompletedHandler asyncCompleted
)
#Parameters
Name | Type | Description |
---|---|---|
field | Pivot |
A Pivot |
sort |
Field |
A Field |
async |
Async |
A Async |
#Remarks
The SetFieldSortingAsync method is asynchronous. It starts executing the related operation in a background thread, and immediately returns control. The primary UI thread is not blocked, allowing the application to continue responding to end-user actions. For more information about the asynchronous mode, see Asynchronous Mode.
The field sort order is specified by the PivotGridField.SortOrder property. To toggle the field sort order, use the PivotGridField.ChangeSortOrder (synchronous) or PivotGridControl.ChangeFieldSortOrderAsync (asynchronous) method.