Ejemplo n.º 1
0
 private void ManagedListViewPanel1_ColumnClicked(object sender, ManagedListViewColumnClickArgs e)
 {
     if (ColumnClicked != null)
     {
         ColumnClicked(this, e);
     }
 }
Ejemplo n.º 2
0
 // Sort
 private void managedListView1_ColumnClicked(object sender, ManagedListViewColumnClickArgs e)
 {
     if (_thread_busy) return;
     //get column and detect sort information
     ManagedListViewColumn column = managedListView1.Columns.GetColumnByID(e.ColumnID);
     if (column == null) return;
     bool az = false;
     switch (column.SortMode)
     {
         case ManagedListViewSortMode.AtoZ: az = false; break;
         case ManagedListViewSortMode.None:
         case ManagedListViewSortMode.ZtoA: az = true; break;
     }
     foreach (ManagedListViewColumn cl in managedListView1.Columns)
         cl.SortMode = ManagedListViewSortMode.None;
     column.SortMode = az ? ManagedListViewSortMode.AtoZ : ManagedListViewSortMode.ZtoA;
     // Do the sort !
     doSort = true;
     sortColumnName = e.ColumnID;
     sortAZ = az;
     RefreshEntries();
 }
Ejemplo n.º 3
0
 private void ManagedListViewPanel1_ColumnClicked(object sender, ManagedListViewColumnClickArgs e)
 {
     if (ColumnClicked != null)
         ColumnClicked(this, e);
 }