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