QuickGrid<TGridItem>.SortByColumnAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
member this.SortByColumnAsync : Microsoft.AspNetCore.Components.QuickGrid.ColumnBase<'GridItem> * Microsoft.AspNetCore.Components.QuickGrid.SortDirection -> System.Threading.Tasks.Task
Public Function SortByColumnAsync (column As ColumnBase(Of TGridItem), Optional direction As SortDirection = Microsoft.AspNetCore.Components.QuickGrid.SortDirection.Auto) As Task
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.