1 write to _columnsPrivateCopy
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
68_columnsPrivateCopy = _dataGridViewPrivateCopy.Columns;
31 references to _columnsPrivateCopy
System.Windows.Forms.Design (31)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (31)
69_columnsPrivateCopy.CollectionChanged += columnsPrivateCopy_CollectionChanged; 99_selectedColumns.SelectedIndex = _columnsPrivateCopy.IndexOf((DataGridViewColumn)e.Element!); 146_columnsPrivateCopy.RemoveAt(selectedIndex); 149_columnsPrivateCopy.Insert(selectedIndex, newColumn); 219DataGridViewColumn[] newColumns = new DataGridViewColumn[_columnsPrivateCopy.Count]; 220bool[] userAddedColumnsInfo = new bool[_columnsPrivateCopy.Count]; 221string?[] compNames = new string?[_columnsPrivateCopy.Count]; 222for (int i = 0; i < _columnsPrivateCopy.Count; i++) 224DataGridViewColumn newColumn = (DataGridViewColumn)_columnsPrivateCopy[i].Clone(); 226newColumn.ContextMenuStrip = _columnsPrivateCopy[i].ContextMenuStrip; 229if (_userAddedColumns.Contains(_columnsPrivateCopy[i])) 234if (_columnsNames.TryGetValue(_columnsPrivateCopy[i], out string? compName)) 437for (int i = 0; i < _columnsPrivateCopy.Count; i++) 439_columnsPrivateCopy[i].DisplayIndex = i; 673_columnsPrivateCopy.RemoveAt(selectedIndex); 678_columnsPrivateCopy[selectedIndex].Frozen = true; 683Debug.Assert(_columnsPrivateCopy[i].Frozen, "MOVE_DOWN : all the columns up to the one we moved should be frozen"); 690_columnsPrivateCopy.Insert(selectedIndex + 1, item.DataGridViewColumn); 719_columnsPrivateCopy.RemoveAt(selectedIndex - 1); 727if (item.DataGridViewColumn.Frozen && !_columnsPrivateCopy[selectedIndex - 1].Frozen) 734_columnsPrivateCopy.Insert(selectedIndex, item.DataGridViewColumn); 828_columnsNames.Remove(_columnsPrivateCopy[selectedIndex]); 829_userAddedColumns.Remove(_columnsPrivateCopy[selectedIndex]); 831_columnsPrivateCopy.RemoveAt(selectedIndex); 849_addColumnDialog = ScaleHelper.InvokeInSystemAwareContext(() => new DataGridViewAddColumnDialog(_columnsPrivateCopy, _liveDataGridView!)); 875for (int i = 0; i < _columnsPrivateCopy.Count; i++) 877ComponentDesigner columnDesigner = DataGridViewAddColumnDialog.GetComponentDesignerForType(tr, _columnsPrivateCopy[i].GetType())!; 878_selectedColumns.Items.Add(new ListBoxItem(_columnsPrivateCopy[i], this, columnDesigner)); 1108_columnsNames.EnsureCapacity(_columnsPrivateCopy.Count); 1109_columnsPrivateCopy.Clear(); 1130_columnsPrivateCopy.Add(col);