public void AddColumn(DataTableColumn <TItem> column) { Columns.Add(column); if (CurrentOrder.Column == null) { CurrentOrder.Column = column; } }
public void OrderBy(DataTableColumn <TItem> column) { searchTimer.Stop(); isLoading = true; if (CurrentOrder.Column == column) { CurrentOrder.Asc = !CurrentOrder.Asc; } else { CurrentOrder.Column = column; CurrentOrder.Asc = true; } StateHasChanged(); searchTimer.Start(); }