Share via


QuickGrid<TGridItem>.SortByColumnAsync Method

Definition

Sets the grid's current sort column to the specified column.

public System.Threading.Tasks.Task SortByColumnAsync (Microsoft.AspNetCore.Components.QuickGrid.ColumnBase<TGridItem> column, Microsoft.AspNetCore.Components.QuickGrid.SortDirection direction = Microsoft.AspNetCore.Components.QuickGrid.SortDirection.Auto);

Parameters

column
ColumnBase<TGridItem>

The column that defines the new sort order.

direction
SortDirection

The direction of sorting. If the value is Auto, then it will toggle the direction on each call.

Returns

A Task representing the completion of the operation.

Applies to