コード例 #1
0
 public void AddColumn(DataTableColumn <TItem> column)
 {
     Columns.Add(column);
     if (CurrentOrder.Column == null)
     {
         CurrentOrder.Column = column;
     }
 }
コード例 #2
0
        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();
        }