Esempio n. 1
0
 public new void Sort()
 {
     if (VirtualMode && dataManager != null)
     {
         ListViewColumnSorter sorter = (ListViewColumnSorter)ListViewItemSorter;
         IBindingList         bl     = dataManager.List as IBindingList;
         if (bl != null && bl.SupportsSorting)
         {
             bl.RemoveSort();
             bl.ApplySort(dataSourceProperties[sorter.SortColumn], (ListSortDirection)(sorter.Order - 1));
         }
         else
         {
             ArrayList.Adapter(dataManager.List).Sort(sorter);
         }
     }
     else
     {
         base.Sort();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ListViewEx"/> class.
 /// </summary>
 public ListViewEx()
 {
     ListViewItemSorter = new ListViewColumnSorter();
     InvokeMatchingMethods <Action>("Initialize_");
 }