Example #1
0
 private void MoveColumnsDown()
 {
     for (int i = SelectedVisibleColumns.Count - 1; i >= 0; i--)
     {
         int origIdx = VisibleColumns.IndexOf(SelectedVisibleColumns[i]);
         VisibleColumns.Move(origIdx, origIdx + 1);
     }
 }
Example #2
0
 private void MoveColumnsUp()
 {
     for (int i = 0; i < SelectedVisibleColumns.Count; i++)
     {
         int origIdx = VisibleColumns.IndexOf(SelectedVisibleColumns[i]);
         VisibleColumns.Move(origIdx, origIdx - 1);
     }
 }